Skip to content

Commit 8894907

Browse files
committed
update rollup build config
1 parent b00063b commit 8894907

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

rollup.config.js

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
11
import babel from 'rollup-plugin-babel';
22
import cleanup from 'rollup-plugin-cleanup';
3+
import resolve from 'rollup-plugin-node-resolve';
4+
import commonjs from 'rollup-plugin-commonjs';
35

46
export default {
57
entry: 'src/index.js',
68
format: 'umd',
7-
moduleName: 'revuejs',
9+
moduleName: 'Revuejs',
810
dest: 'dist/index.js',
911
plugins: [
12+
resolve({
13+
customResolveOptions: 'node_modules',
14+
jsnext: true,
15+
main: true
16+
}),
17+
commonjs({
18+
namedExports: {
19+
20+
}
21+
}),
1022
babel({
1123
exclude: 'node_modules/**',
1224
externalHelpers: false,
1325
babelrc: false,
26+
runtimeHelpers: true,
1427
presets: [
1528
[
1629
'es2015',
1730
{
1831
'modules': false
1932
}
2033
]
21-
]
34+
],
35+
plugins: ['transform-runtime']
2236
}),
2337
cleanup()
2438
]

0 commit comments

Comments
 (0)