Fix Rollup config for ServiceWorker/Server, NPM packages updates
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -105,14 +105,13 @@ export default {
|
||||
...replaceOptions
|
||||
}),
|
||||
svelte({
|
||||
generate: 'ssr',
|
||||
dev,
|
||||
preprocess,
|
||||
generate: 'ssr'
|
||||
preprocess
|
||||
}),
|
||||
aliases,
|
||||
glslify(),
|
||||
resolve({
|
||||
browser: true,
|
||||
extensions: resolveExtensions,
|
||||
dedupe: ['svelte']
|
||||
}),
|
||||
@@ -128,21 +127,22 @@ export default {
|
||||
/*
|
||||
** Service worker
|
||||
*/
|
||||
// ...(!dev && {
|
||||
// serviceworker: {
|
||||
// input: sapperConfig.serviceworker.input(),
|
||||
// output: sapperConfig.serviceworker.output(),
|
||||
// plugins: [
|
||||
// resolve(),
|
||||
// aliases,
|
||||
// replace({
|
||||
// 'process.browser': true,
|
||||
// ...replaceOptions
|
||||
// }),
|
||||
// commonjs(),
|
||||
// !dev && terser()
|
||||
// ],
|
||||
// onwarn,
|
||||
// }
|
||||
// })
|
||||
...(!dev && {
|
||||
serviceworker: {
|
||||
input: sapperConfig.serviceworker.input(),
|
||||
output: sapperConfig.serviceworker.output(),
|
||||
plugins: [
|
||||
resolve(),
|
||||
replace({
|
||||
'process.browser': false,
|
||||
...replaceOptions
|
||||
}),
|
||||
aliases,
|
||||
glslify(),
|
||||
commonjs(),
|
||||
!dev && terser()
|
||||
],
|
||||
onwarn,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user