Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit cb1d7b1

Browse files
pshrmnjeresig
authored andcommitted
Hoist dependencies = smaller react-router-dom UMD (remix-run#5720)
* Hoist dependencies = smaller react-router-dom UMD Previously, react-router-dom's UMD builds contained duplicate code because they were fetching from both `packages/react-router/node-modules` and `packages/react-router-dom/node_modules`. With hoisting, this build is now fetching from the root `node_modules`. * eslint --fix the website. * Update and sync packages. * Fix website for React 16 * De-hoist RRN's react dep
1 parent 7dc1264 commit cb1d7b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3039
-3676
lines changed

packages/react-router-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"eslint-plugin-import": "^2.2.0",
4343
"eslint-plugin-react": "^7.4.0",
4444
"gzip-size": "^4.0.0",
45-
"history": "^4.6.3",
45+
"history": "^4.7.2",
4646
"jest": "^21.2.1",
4747
"pretty-bytes": "^4.0.2",
4848
"raf": "^3.4.0",

packages/react-router-dom/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const config = {
1919
}),
2020
resolve({
2121
customResolveOptions: {
22-
moduleDirectory: ['node_modules', '../']
22+
moduleDirectory: ['../../node_modules', '../']
2323
}
2424
}),
2525
commonjs({

0 commit comments

Comments
 (0)