Skip to content

Commit 7ae8cf5

Browse files
taylorc93timdorr
authored andcommitted
Add sideEffects: false to react-router-dom package.json (#6082)
* added sideEffects: true to react-router-dom * added sideEffects: false to other packages * added sideEffects: false to react-router-native
1 parent 2347833 commit 7ae8cf5

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

packages/react-router-config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
],
1717
"main": "index.js",
1818
"module": "es/index.js",
19+
"sideEffects": false,
1920
"scripts": {
2021
"build": "node ./tools/build.js",
2122
"watch": "babel ./modules -d . --ignore __tests__ --watch",

packages/react-router-dom/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
],
3030
"main": "index.js",
3131
"module": "es/index.js",
32+
"sideEffects": false,
3233
"scripts": {
3334
"build": "node ./tools/build.js",
3435
"watch": "babel ./modules -d . --ignore __tests__ --watch",

packages/react-router-native/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"Ryan Florence"
1010
],
1111
"main": "main.js",
12+
"sideEffects": false,
1213
"scripts": {
1314
"start": "node node_modules/react-native/local-cli/cli.js start",
1415
"clean": "git clean -fdX .",

packages/react-router-redux/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
],
2020
"main": "index.js",
2121
"module": "es/index.js",
22+
"sideEffects": false,
2223
"scripts": {
2324
"build": "node ./tools/build.js",
2425
"prepublishOnly": "node ./tools/build.js",

packages/react-router/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
],
2626
"main": "index.js",
2727
"module": "es/index.js",
28+
"sideEffects": false,
2829
"scripts": {
2930
"build": "node ./tools/build.js",
3031
"watch": "babel ./modules -d . --ignore __tests__ --watch",

0 commit comments

Comments
 (0)