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:
32
package.json
32
package.json
@@ -24,34 +24,34 @@
|
||||
"polka": "^1.0.0-next.11",
|
||||
"rellax": "^1.12.1",
|
||||
"scroll-out": "^2.2.11",
|
||||
"sirv": "^1.0.0",
|
||||
"svelte-lazy": "^0.1.13",
|
||||
"sirv": "^1.0.6",
|
||||
"svelte-lazy": "^1.0.5",
|
||||
"swipe-listener": "^1.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.10.2",
|
||||
"@babel/core": "^7.11.4",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/plugin-transform-runtime": "^7.10.1",
|
||||
"@babel/preset-env": "^7.10.2",
|
||||
"@babel/runtime": "^7.10.2",
|
||||
"@babel/plugin-transform-runtime": "^7.11.0",
|
||||
"@babel/preset-env": "^7.11.0",
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@rollup/plugin-alias": "^3.1.1",
|
||||
"@rollup/plugin-babel": "^5.0.3",
|
||||
"@rollup/plugin-commonjs": "13.0.0",
|
||||
"@rollup/plugin-node-resolve": "^8.0.1",
|
||||
"@rollup/plugin-babel": "^5.2.0",
|
||||
"@rollup/plugin-commonjs": "15.0.0",
|
||||
"@rollup/plugin-node-resolve": "^9.0.0",
|
||||
"@rollup/plugin-replace": "^2.3.3",
|
||||
"autoprefixer": "^9.8.0",
|
||||
"autoprefixer": "^9.8.6",
|
||||
"dotenv": "^8.2.0",
|
||||
"node-sass": "^4.14.1",
|
||||
"postcss": "^7.0.32",
|
||||
"postcss-load-config": "^2.1.0",
|
||||
"postcss-preset-env": "^6.7.0",
|
||||
"rollup": "^2.16.1",
|
||||
"rollup": "^2.26.5",
|
||||
"rollup-plugin-glslify": "^1.2.0",
|
||||
"rollup-plugin-svelte": "^5.2.2",
|
||||
"rollup-plugin-terser": "^6.1.0",
|
||||
"sapper": "^0.27.16",
|
||||
"svelte": "^3.23.2",
|
||||
"svelte-preprocess": "^3.9.7"
|
||||
"rollup-plugin-svelte": "^5.2.3",
|
||||
"rollup-plugin-terser": "^7.0.0",
|
||||
"sapper": "^0.28.0",
|
||||
"svelte": "^3.24.1",
|
||||
"svelte-preprocess": "^4.1.1"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 0.5%",
|
||||
|
||||
1228
pnpm-lock.yaml
generated
1228
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -14,11 +14,12 @@ module.exports = () => ({
|
||||
|
||||
// CSS Nano
|
||||
!dev && require('cssnano')({
|
||||
preset: 'default',
|
||||
preset: ['default', {
|
||||
autoprefixer: true,
|
||||
discardComments: { removeAll: true },
|
||||
calc: { precision: 2 },
|
||||
safe: true
|
||||
}]
|
||||
}),
|
||||
|
||||
// Banner
|
||||
|
||||
@@ -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