@@ -7,35 +7,38 @@ import uglify from 'rollup-plugin-uglify';
7
7
const production = ! process . env . ROLLUP_WATCH ;
8
8
9
9
export default {
10
- input : 'src/main.js' ,
11
- output : {
12
- sourcemap : true ,
13
- format : 'iife' ,
14
- name : 'app' ,
15
- file : 'public/bundle.js'
16
- } ,
17
- plugins : [
18
- svelte ( {
19
- // enable run-time checks when not in production
20
- dev : ! production ,
21
- // we'll extract any component CSS out into
22
- // a separate file — better for performance
23
- css : css => {
24
- css . write ( 'public/bundle.css' ) ;
25
- }
26
- } ) ,
10
+ input : 'src/main.js' ,
11
+ output : {
12
+ sourcemap : true ,
13
+ format : 'iife' ,
14
+ name : 'app' ,
15
+ file : 'public/bundle.js'
16
+ } ,
17
+ plugins : [
18
+ svelte ( {
19
+ // enable run-time checks when not in production
20
+ dev : ! production ,
21
+ // we'll extract any component CSS out into
22
+ // a separate file — better for performance
23
+ css : css => {
24
+ css . write ( 'public/bundle.css' ) ;
25
+ }
26
+ } ) ,
27
27
28
- // If you have external dependencies installed from
29
- // npm, you'll most likely need these plugins. In
30
- // some cases you'll need additional configuration —
31
- // consult the documentation for details:
32
- // https://github.com/rollup/rollup-plugin-commonjs
33
- resolve ( ) ,
34
- commonjs ( ) ,
28
+ // If you have external dependencies installed from
29
+ // npm, you'll most likely need these plugins. In
30
+ // some cases you'll need additional configuration —
31
+ // consult the documentation for details:
32
+ // https://github.com/rollup/rollup-plugin-commonjs
33
+ resolve ( ) ,
34
+ commonjs ( ) ,
35
35
36
- // If we're building for production (npm run build
37
- // instead of npm run dev), transpile and minify
38
- production && buble ( { exclude : 'node_modules/**' } ) ,
39
- production && uglify ( )
40
- ]
36
+ // If we're building for production (npm run build
37
+ // instead of npm run dev), transpile and minify
38
+ production && buble ( {
39
+ exclude : 'node_modules/**' ,
40
+ transforms : { forOf : false } ,
41
+ } ) ,
42
+ production && uglify ( )
43
+ ]
41
44
} ;
0 commit comments