aboutsummaryrefslogtreecommitdiffstats
path: root/gui-clamp/ui-react-lib/rollup.config.js
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-05-28 12:48:13 +0000
committerGerrit Code Review <gerrit@onap.org>2021-05-28 12:48:13 +0000
commit0bb797ed095b0d8a354ee6cac9f9842f0f6bcd5a (patch)
treea2309a4372112dc507c903d7e5d2d33ed791ab47 /gui-clamp/ui-react-lib/rollup.config.js
parent4ea0f910d4ad5c15915eec49b5057d7af5c6dbf6 (diff)
parent87111eea8588fb30936a8f876f5f3feed61e7b8a (diff)
Merge "React Front-End UI"
Diffstat (limited to 'gui-clamp/ui-react-lib/rollup.config.js')
-rw-r--r--gui-clamp/ui-react-lib/rollup.config.js48
1 files changed, 48 insertions, 0 deletions
diff --git a/gui-clamp/ui-react-lib/rollup.config.js b/gui-clamp/ui-react-lib/rollup.config.js
new file mode 100644
index 0000000..c671779
--- /dev/null
+++ b/gui-clamp/ui-react-lib/rollup.config.js
@@ -0,0 +1,48 @@
+import babel from 'rollup-plugin-babel'
+import commonjs from '@rollup/plugin-commonjs'
+import postcss from 'rollup-plugin-postcss'
+import resolve from '@rollup/plugin-node-resolve'
+import external from 'rollup-plugin-peer-deps-external'
+import img from '@rollup/plugin-image'
+
+import pkg from './package.json'
+
+export default {
+ input: './libIndex.js',
+ output: [
+ {
+ file: pkg.main,
+ format: 'cjs',
+ sourcemap: true
+ },
+ {
+ file: pkg.module,
+ format: 'es',
+ sourcemap: true
+ }
+ ],
+ plugins: [
+ img(),
+ external(),
+ postcss({
+ modules: true
+ }),
+ babel({
+ exclude: 'node_modules/**',
+ presets: [
+
+ "@babel/preset-env", {},
+ "@babel/preset-react", {}
+ ],
+ plugins: [
+ [
+ "@babel/plugin-proposal-class-properties",
+ {
+ "loose": true
+ }
+ ]
+ ]
+ }),
+ resolve({ preferBuiltins: true, mainFields: ['browser'] })
+ ]
+}