Skip to content

Commit 5f2fbcf

Browse files
committed
recover rollup demo
1 parent 47798f8 commit 5f2fbcf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

rollup.demo.config.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import buble from '@rollup/plugin-buble';
2+
import nodeResolve from 'rollup-plugin-node-resolve';
3+
import commonJS from 'rollup-plugin-commonjs';
4+
export default {
5+
input: 'demo.js',
6+
output: {format: 'iife', file: 'demo_bundle.js'},
7+
plugins: [
8+
buble({
9+
exclude: 'node_modules/**',
10+
namedFunctionExpressions: false
11+
}),
12+
nodeResolve({
13+
main: true,
14+
browser: true
15+
}),
16+
commonJS({
17+
include: '../**',
18+
sourceMap: false
19+
})
20+
]
21+
};

0 commit comments

Comments
 (0)