From 37c973d5c02d2be6874218d6eab776522136a2a3 Mon Sep 17 00:00:00 2001 From: Kris Ellery Date: Tue, 12 Apr 2022 11:58:53 -0500 Subject: [PATCH] feat: add CSS files to side effects in order to tree-shake CSS imports --- templates/dist/cjs/dev/package.json | 5 ++++- templates/dist/cjs/prod/package.json | 5 ++++- templates/dist/es/dev/package.json | 5 ++++- templates/dist/es/prod/package.json | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/templates/dist/cjs/dev/package.json b/templates/dist/cjs/dev/package.json index 5bbefff..6cf13a8 100644 --- a/templates/dist/cjs/dev/package.json +++ b/templates/dist/cjs/dev/package.json @@ -1,3 +1,6 @@ { - "type": "commonjs" + "type": "commonjs", + "sideEffects": [ + "*.css" + ] } diff --git a/templates/dist/cjs/prod/package.json b/templates/dist/cjs/prod/package.json index 5bbefff..6cf13a8 100644 --- a/templates/dist/cjs/prod/package.json +++ b/templates/dist/cjs/prod/package.json @@ -1,3 +1,6 @@ { - "type": "commonjs" + "type": "commonjs", + "sideEffects": [ + "*.css" + ] } diff --git a/templates/dist/es/dev/package.json b/templates/dist/es/dev/package.json index 3dbc1ca..f513487 100644 --- a/templates/dist/es/dev/package.json +++ b/templates/dist/es/dev/package.json @@ -1,3 +1,6 @@ { - "type": "module" + "type": "module", + "sideEffects": [ + "*.css" + ] } diff --git a/templates/dist/es/prod/package.json b/templates/dist/es/prod/package.json index 3dbc1ca..f513487 100644 --- a/templates/dist/es/prod/package.json +++ b/templates/dist/es/prod/package.json @@ -1,3 +1,6 @@ { - "type": "module" + "type": "module", + "sideEffects": [ + "*.css" + ] }