Compare commits

...

3 Commits

Author SHA1 Message Date
konnorrogers
8efa82ecaf imports to not use .component 2023-08-01 11:55:41 -04:00
konnorrogers
65b6899378 fix treeshaking array 2023-08-01 11:50:43 -04:00
konnorrogers
f880687401 fix treeshaking array 2023-08-01 11:44:15 -04:00
2 changed files with 3 additions and 1 deletions

View File

@@ -167,7 +167,7 @@ export default {
//
const terms = [
{ 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);

View File

@@ -14,8 +14,10 @@
"./dist/shoelace.js",
"./dist/shoelace-autoloader.js",
"./dist/components/**/*.js",
"./dist/chunks/**/*.js",
"./dist/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",
"./dist/components/**/*((?<!(\\.component|\\.styles)))\\.js"
],