Skip to content

Commit 7090678

Browse files
fix: declare the published packages side-effect free so unused components can be tree-shaken (#2610)
1 parent 4b649aa commit 7090678

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎modules/main/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"license": "MIT",
1717
"type": "module",
18+
"sideEffects": false,
1819
"exports": {
1920
"./mapbox": {
2021
"types": "./dist/mapbox.d.ts",

‎modules/react-mapbox/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"license": "MIT",
1616
"type": "module",
17+
"sideEffects": false,
1718
"types": "dist/index.d.ts",
1819
"main": "dist/index.cjs",
1920
"module": "dist/index.js",

‎modules/react-maplibre/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"license": "MIT",
1616
"type": "module",
17+
"sideEffects": false,
1718
"types": "dist/index.d.ts",
1819
"main": "dist/index.cjs",
1920
"module": "dist/index.js",

0 commit comments

Comments
 (0)