perf: reduce bundle size (#155)
This commit is contained in:
parent
50ac48d4c8
commit
2f05ce790d
|
@ -189,7 +189,7 @@
|
|||
"bundlesize": [
|
||||
{
|
||||
"path": "./bundle.js",
|
||||
"maxSize": "41.4 kB",
|
||||
"maxSize": "41.3 kB",
|
||||
"compression": "none"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -59,6 +59,13 @@ const baseConfig = {
|
|||
},
|
||||
preprocess: preprocessConfig
|
||||
}),
|
||||
replace({
|
||||
preventAssignment: true,
|
||||
delimiters: ['', ''],
|
||||
// Reduce bundle size by removing this bit
|
||||
// https://github.com/sveltejs/svelte/blob/5d82496/src/runtime/internal/Component.ts#L64-L78
|
||||
'(!customElement)': '(false)'
|
||||
}),
|
||||
strip({
|
||||
include: ['**/*.js', '**/*.svelte'],
|
||||
functions: [
|
||||
|
|
Loading…
Reference in New Issue