kopia lustrzana https://github.com/shoelace-style/shoelace
fix treeshaking array (#1480)
* fix treeshaking array * fix treeshaking array * imports to not use .componentpull/1482/head
rodzic
16f3e256b0
commit
81dfcc2eae
|
@ -167,7 +167,7 @@ export default {
|
||||||
//
|
//
|
||||||
const terms = [
|
const terms = [
|
||||||
{ from: /^src\//, to: '' }, // Strip the src/ prefix
|
{ from: /^src\//, to: '' }, // Strip the src/ prefix
|
||||||
{ from: /\.(t|j)sx?$/, to: '.js' } // Convert .ts to .js
|
{ from: /\.component.(t|j)sx?$/, to: '.js' } // Convert .ts to .js
|
||||||
];
|
];
|
||||||
|
|
||||||
mod.path = replace(mod.path, terms);
|
mod.path = replace(mod.path, terms);
|
||||||
|
|
|
@ -14,8 +14,10 @@
|
||||||
"./dist/shoelace.js",
|
"./dist/shoelace.js",
|
||||||
"./dist/shoelace-autoloader.js",
|
"./dist/shoelace-autoloader.js",
|
||||||
"./dist/components/**/*.js",
|
"./dist/components/**/*.js",
|
||||||
|
"./dist/chunks/**/*.js",
|
||||||
"./dist/translations/**/*.*",
|
"./dist/translations/**/*.*",
|
||||||
"./src/translations/**/*.*",
|
"./src/translations/**/*.*",
|
||||||
|
"*.css",
|
||||||
"// COMMENT: This monstrosity below isn't perfect, but its like 99% to get bundlers to recognize 'thing.component.ts' as having no side effects. Example: https://regexr.com/7grof",
|
"// COMMENT: This monstrosity below isn't perfect, but its like 99% to get bundlers to recognize 'thing.component.ts' as having no side effects. Example: https://regexr.com/7grof",
|
||||||
"./dist/components/**/*((?<!(\\.component|\\.styles)))\\.js"
|
"./dist/components/**/*((?<!(\\.component|\\.styles)))\\.js"
|
||||||
],
|
],
|
||||||
|
|
Ładowanie…
Reference in New Issue