File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
import babel from 'rollup-plugin-babel' ;
2
2
import cleanup from 'rollup-plugin-cleanup' ;
3
+ import resolve from 'rollup-plugin-node-resolve' ;
4
+ import commonjs from 'rollup-plugin-commonjs' ;
3
5
4
6
export default {
5
7
entry : 'src/index.js' ,
6
8
format : 'umd' ,
7
- moduleName : 'revuejs ' ,
9
+ moduleName : 'Revuejs ' ,
8
10
dest : 'dist/index.js' ,
9
11
plugins : [
12
+ resolve ( {
13
+ customResolveOptions : 'node_modules' ,
14
+ jsnext : true ,
15
+ main : true
16
+ } ) ,
17
+ commonjs ( {
18
+ namedExports : {
19
+
20
+ }
21
+ } ) ,
10
22
babel ( {
11
23
exclude : 'node_modules/**' ,
12
24
externalHelpers : false ,
13
25
babelrc : false ,
26
+ runtimeHelpers : true ,
14
27
presets : [
15
28
[
16
29
'es2015' ,
17
30
{
18
31
'modules' : false
19
32
}
20
33
]
21
- ]
34
+ ] ,
35
+ plugins : [ 'transform-runtime' ]
22
36
} ) ,
23
37
cleanup ( )
24
38
]
You can’t perform that action at this time.
0 commit comments