Update configs and NPM packages
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:
@@ -22,7 +22,7 @@ const replaceOptions = {
|
||||
}
|
||||
|
||||
// Svelte
|
||||
const onwarn = (warning, onwarn) => (warning.code === 'CIRCULAR_DEPENDENCY' && /[/\\]@sapper[/\\]/.test(warning.message)) || onwarn(warning)
|
||||
const onwarn = (warning, onwarn) => (warning.code === 'MISSING_EXPORT' && /'preload'/.test(warning.message)) || (warning.code === 'CIRCULAR_DEPENDENCY' && /[/\\]@sapper[/\\]/.test(warning.message)) || onwarn(warning)
|
||||
|
||||
// Preprocessors
|
||||
const preprocess = autoPreprocess({
|
||||
@@ -55,7 +55,6 @@ export default {
|
||||
client: {
|
||||
input: sapperConfig.client.input(),
|
||||
output: sapperConfig.client.output(),
|
||||
preserveEntrySignatures: false,
|
||||
plugins: [
|
||||
// Javascript
|
||||
replace({
|
||||
@@ -67,7 +66,7 @@ export default {
|
||||
preprocess,
|
||||
hydratable: true,
|
||||
emitCss: dev,
|
||||
// css: css => css.write('static/bundle.css')
|
||||
css: css => css.write('static/bundle.css')
|
||||
}),
|
||||
aliases,
|
||||
glslify(),
|
||||
@@ -88,7 +87,7 @@ export default {
|
||||
module: true
|
||||
}),
|
||||
],
|
||||
|
||||
preserveEntrySignatures: false,
|
||||
onwarn,
|
||||
},
|
||||
|
||||
@@ -106,6 +105,7 @@ export default {
|
||||
}),
|
||||
svelte({
|
||||
generate: 'ssr',
|
||||
hydratable: true,
|
||||
dev,
|
||||
preprocess
|
||||
}),
|
||||
@@ -117,9 +117,8 @@ export default {
|
||||
}),
|
||||
commonjs()
|
||||
],
|
||||
external: Object.keys(pkg.dependencies).concat(
|
||||
require('module').builtinModules || Object.keys(process.binding('natives'))
|
||||
),
|
||||
external: Object.keys(pkg.dependencies).concat(require('module').builtinModules),
|
||||
preserveEntrySignatures: 'strict',
|
||||
onwarn,
|
||||
},
|
||||
|
||||
@@ -142,6 +141,7 @@ export default {
|
||||
// commonjs(),
|
||||
// !dev && terser()
|
||||
// ],
|
||||
// preserveEntrySignatures: false,
|
||||
// onwarn,
|
||||
// }
|
||||
// })
|
||||
|
||||
Reference in New Issue
Block a user