From f88068740127911bc9d400d7768a017cd7a1ffbd Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Tue, 1 Aug 2023 11:44:15 -0400 Subject: [PATCH 1/3] fix treeshaking array --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index e5d583a607..b8d21f2687 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,11 @@ "./dist/shoelace.js", "./dist/shoelace-autoloader.js", "./dist/components/**/*.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/**/*((? Date: Tue, 1 Aug 2023 11:50:43 -0400 Subject: [PATCH 2/3] fix treeshaking array --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index b8d21f2687..7c423d108b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "./dist/shoelace.js", "./dist/shoelace-autoloader.js", "./dist/components/**/*.js", - "./dist/components/**/*.js", "./dist/chunks/**/*.js", "./dist/translations/**/*.*", "./src/translations/**/*.*", From 8efa82ecafa7e78540b63ad9ed6d41094f7937cf Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Tue, 1 Aug 2023 11:55:41 -0400 Subject: [PATCH 3/3] imports to not use .component --- custom-elements-manifest.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom-elements-manifest.config.js b/custom-elements-manifest.config.js index 7a41f759a9..d3d1379fdb 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);