exploRUG component setup

This commit is contained in:
2026-04-21 14:54:02 +05:45
commit 39ead94535
36 changed files with 9384 additions and 0 deletions

42
rollup.config.js Normal file
View 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(),
],
};