forked from supasate/connected-react-router
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output ESM build, and make module tree-shakeable (@unindented in supa…
- Loading branch information
Showing
10 changed files
with
71 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
{ | ||
"presets": [ | ||
"es2015", | ||
"react", | ||
"stage-1" | ||
"@babel/preset-env", | ||
"@babel/preset-react" | ||
], | ||
"plugins": [ | ||
"rewire" | ||
] | ||
} | ||
"env": { | ||
"esm": { | ||
"presets": [ | ||
["@babel/preset-env", { "modules": false }] | ||
] | ||
}, | ||
"test": { | ||
"plugins": [ | ||
"rewire" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
examples/* | ||
esm/* | ||
lib/* | ||
umd/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,10 @@ | |
2, | ||
"never" | ||
] | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "16.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
*.log | ||
*.swp | ||
node_modules | ||
esm | ||
lib | ||
umd | ||
.idea | ||
.idea | ||
package-lock.json |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
import createAll from './createAll' | ||
import createConnectedRouter from "./ConnectedRouter" | ||
import createConnectRouter from "./reducer" | ||
import createSelectors from "./selectors" | ||
import immutableStructure from './structure/immutable' | ||
|
||
export const { | ||
LOCATION_CHANGE, | ||
CALL_HISTORY_METHOD, | ||
push, | ||
replace, | ||
go, | ||
goBack, | ||
goForward, | ||
routerActions, | ||
ConnectedRouter, | ||
connectRouter, | ||
routerMiddleware, | ||
getLocation, | ||
getAction, | ||
createMatchSelector, | ||
} = createAll(immutableStructure) | ||
export { LOCATION_CHANGE, CALL_HISTORY_METHOD, push, replace, go, goBack, goForward, routerActions } from "./actions" | ||
export { default as routerMiddleware } from "./middleware" | ||
|
||
export const ConnectedRouter = /*#__PURE__*/ createConnectedRouter(immutableStructure) | ||
export const connectRouter = /*#__PURE__*/ createConnectRouter(immutableStructure) | ||
export const { getLocation, getAction, createMatchSelector } = /*#__PURE__*/ createSelectors(immutableStructure) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
import createAll from './createAll' | ||
import plainStructure from './structure/plain' | ||
import createConnectedRouter from "./ConnectedRouter" | ||
import createConnectRouter from "./reducer" | ||
import createSelectors from "./selectors" | ||
import plainStructure from "./structure/plain" | ||
|
||
export const { | ||
LOCATION_CHANGE, | ||
CALL_HISTORY_METHOD, | ||
push, | ||
replace, | ||
go, | ||
goBack, | ||
goForward, | ||
routerActions, | ||
ConnectedRouter, | ||
connectRouter, | ||
routerMiddleware, | ||
getLocation, | ||
getAction, | ||
createMatchSelector, | ||
} = createAll(plainStructure) | ||
export { LOCATION_CHANGE, CALL_HISTORY_METHOD, push, replace, go, goBack, goForward, routerActions } from "./actions" | ||
export { default as routerMiddleware } from "./middleware" | ||
|
||
export const ConnectedRouter = /*#__PURE__*/ createConnectedRouter(plainStructure) | ||
export const connectRouter = /*#__PURE__*/ createConnectRouter(plainStructure) | ||
export const { getLocation, getAction, createMatchSelector } = /*#__PURE__*/ createSelectors(plainStructure) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
import createAll from './createAll' | ||
import createConnectedRouter from "./ConnectedRouter" | ||
import createConnectRouter from "./reducer" | ||
import createSelectors from "./selectors" | ||
import immutableStructure from './structure/seamless-immutable' | ||
|
||
export const { | ||
LOCATION_CHANGE, | ||
CALL_HISTORY_METHOD, | ||
push, | ||
replace, | ||
go, | ||
goBack, | ||
goForward, | ||
routerActions, | ||
ConnectedRouter, | ||
connectRouter, | ||
routerMiddleware, | ||
getLocation, | ||
getAction, | ||
createMatchSelector, | ||
} = createAll(immutableStructure) | ||
export { LOCATION_CHANGE, CALL_HISTORY_METHOD, push, replace, go, goBack, goForward, routerActions } from "./actions" | ||
export { default as routerMiddleware } from "./middleware" | ||
|
||
export const ConnectedRouter = /*#__PURE__*/ createConnectedRouter(immutableStructure) | ||
export const connectRouter = /*#__PURE__*/ createConnectRouter(immutableStructure) | ||
export const { getLocation, getAction, createMatchSelector } = /*#__PURE__*/ createSelectors(immutableStructure) |