Skip to content

Commit

Permalink
Upgrade to rollup-plugin-svelte@7 (sveltejs#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Dec 15, 2020
1 parent b650d10 commit 3127bf9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@rollup/plugin-replace": "^2.2.0",
"@rollup/plugin-url": "^5.0.0",
"rollup": "^2.3.4",
"rollup-plugin-svelte": "^6.0.0",
"rollup-plugin-svelte": "^7.0.0",
"rollup-plugin-terser": "^7.0.0"
}
},
Expand Down
16 changes: 10 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ export default {
'process.env.NODE_ENV': JSON.stringify(mode)
}),
svelte({
dev,
hydratable: true,
emitCss: true
compilerOptions: {
dev,
hydratable: true
}
}),
url({
sourceDir: path.resolve(__dirname, 'src/node_modules/images'),
Expand Down Expand Up @@ -77,9 +78,12 @@ export default {
'process.env.NODE_ENV': JSON.stringify(mode)
}),
svelte({
generate: 'ssr',
hydratable: true,
dev
compilerOptions: {
dev,
generate: 'ssr',
hydratable: true
},
emitCss: false
}),
url({
sourceDir: path.resolve(__dirname, 'src/node_modules/images'),
Expand Down

0 comments on commit 3127bf9

Please sign in to comment.