diff options
Diffstat (limited to 'rollup.config.js')
| -rw-r--r-- | rollup.config.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rollup.config.js b/rollup.config.js index f97c6cc..a4ce770 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -6,6 +6,7 @@ import { terser } from 'rollup-plugin-terser'; import sveltePreprocess from 'svelte-preprocess'; import typescript from '@rollup/plugin-typescript'; import css from 'rollup-plugin-css-only'; +import json from '@rollup/plugin-json'; const production = !process.env.ROLLUP_WATCH; @@ -78,7 +79,10 @@ export default { // If we're building for production (npm run build // instead of npm run dev), minify - production && terser() + production && terser(), + + // Reading from local json should only happen in development - Furkan + !production && json() ], watch: { clearScreen: false |
