From 8811853c1780ee9d1948172142bb92b99660167a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 12 Jan 2018 07:55:33 -0500 Subject: [PATCH 1/3] Support store by default --- rollup.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 5a323cb..1bc11e5 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -23,6 +23,9 @@ export default { css: css => { css.write('public/bundle.css'); }, + + // enable https://svelte.technology/guide#state-management + store: true, // this results in smaller CSS files cascade: false @@ -41,4 +44,4 @@ export default { production && buble({ exclude: 'node_modules/**' }), production && uglify() ] -}; \ No newline at end of file +}; From 46ac55d2ed1e2e1b1bf86e87cccaedba13c47781 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 18 Jan 2018 15:02:27 -0500 Subject: [PATCH 2/3] Update rollup.config.js --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 1bc11e5..01ff202 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -23,7 +23,7 @@ export default { css: css => { css.write('public/bundle.css'); }, - + // enable https://svelte.technology/guide#state-management store: true, From 19d07d5678e4261820621e3e8d3600bac84669bc Mon Sep 17 00:00:00 2001 From: Conduitry Date: Sun, 28 Jan 2018 00:34:09 +0000 Subject: [PATCH 3/3] `name` is now `output.name` --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 01ff202..4f1ea65 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -11,9 +11,9 @@ export default { output: { sourcemap: true, format: 'iife', + name: 'app', file: 'public/bundle.js' }, - name: 'app', plugins: [ svelte({ // enable run-time checks when not in production