exploRUG component setup
This commit is contained in:
42
rollup.config.js
Normal file
42
rollup.config.js
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2018 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
import summary from 'rollup-plugin-summary';
|
||||
import terser from '@rollup/plugin-terser';
|
||||
import resolve from '@rollup/plugin-node-resolve';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
|
||||
export default {
|
||||
input: './Imports/exploRUG.js',
|
||||
output: {
|
||||
file: 'my-element.bundled.js',
|
||||
format: 'esm',
|
||||
},
|
||||
onwarn(warning) {
|
||||
if (warning.code !== 'THIS_IS_UNDEFINED') {
|
||||
console.error(`(!) ${warning.message}`);
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
replace({preventAssignment: false, 'Reflect.decorate': 'undefined'}),
|
||||
resolve(),
|
||||
/**
|
||||
* This minification setup serves the static site generation.
|
||||
* For bundling and minification, check the README.md file.
|
||||
*/
|
||||
terser({
|
||||
ecma: 2021,
|
||||
module: true,
|
||||
warnings: true,
|
||||
mangle: {
|
||||
properties: {
|
||||
regex: /^__/,
|
||||
},
|
||||
},
|
||||
}),
|
||||
summary(),
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user