From 81dfcc2eae1fc3ebee5106d7befd16450985c41d Mon Sep 17 00:00:00 2001 From: Konnor Rogers Date: Tue, 1 Aug 2023 14:04:36 -0400 Subject: [PATCH] fix treeshaking array (#1480) * fix treeshaking array * fix treeshaking array * imports to not use .component --- custom-elements-manifest.config.js | 2 +- package.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/custom-elements-manifest.config.js b/custom-elements-manifest.config.js index 7a41f759..d3d1379f 100644 --- a/custom-elements-manifest.config.js +++ b/custom-elements-manifest.config.js @@ -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); diff --git a/package.json b/package.json index e5d583a6..7c423d10 100644 --- a/package.json +++ b/package.json @@ -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/**/*((?