@@ -4,9 +4,6 @@ import resolve from '@rollup/plugin-node-resolve';
44import { terser } from 'rollup-plugin-terser' ;
55import sveltePreprocess from 'svelte-preprocess' ;
66import typescript from '@rollup/plugin-typescript' ;
7- import css from 'rollup-plugin-css-only' ;
8-
9- const production = ! process . env . ROLLUP_WATCH ;
107
118export default {
129 input : 'src/main.ts' ,
@@ -18,36 +15,12 @@ export default {
1815 } ,
1916 plugins : [
2017 svelte ( {
21- preprocess : sveltePreprocess ( { sourceMap : ! production } ) ,
22- compilerOptions : {
23- customElement : true ,
24- // enable run-time checks when not in production
25- dev : ! production
26- }
27- } ) ,
28- // we'll extract any component CSS out into
29- // a separate file - better for performance
30- css ( { output : 'datetime-card.css' } ) ,
31-
32- // If you have external dependencies installed from
33- // npm, you'll most likely need these plugins. In
34- // some cases you'll need additional configuration -
35- // consult the documentation for details:
36- // https://github.com/rollup/plugins/tree/master/packages/commonjs
37- resolve ( {
38- dedupe : [ 'svelte' ]
18+ preprocess : sveltePreprocess ( { sourceMap : true } ) ,
19+ compilerOptions : { customElement : true , dev : true }
3920 } ) ,
21+ resolve ( { dedupe : [ 'svelte' ] } ) ,
4022 commonjs ( ) ,
41- typescript ( {
42- sourceMap : ! production ,
43- inlineSources : ! production
44- } ) ,
45-
46- // If we're building for production (npm run build
47- // instead of npm run dev), minify
48- production && terser ( )
49- ] ,
50- watch : {
51- clearScreen : false
52- }
23+ typescript ( { sourceMap : true , inlineSources : true } ) ,
24+ terser ( )
25+ ]
5326} ;
0 commit comments