Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
esModule: false fix read only TypeError in expors (#6758)
  • Loading branch information
cif authored and timdorr committed May 29, 2019
1 parent bd436ce commit caa9950
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-router-config/rollup.config.js
Expand Up @@ -16,7 +16,7 @@ function isBareModuleId(id) {
const cjs = [
{
input: "modules/index.js",
output: { file: `cjs/${pkg.name}.js`, format: "cjs" },
output: { file: `cjs/${pkg.name}.js`, format: "cjs", esModule: false },
external: isBareModuleId,
plugins: [
babel({ exclude: /node_modules/ }),
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-dom/rollup.config.js
Expand Up @@ -16,7 +16,7 @@ function isBareModuleId(id) {
const cjs = [
{
input: "modules/index.js",
output: { file: `cjs/${pkg.name}.js`, format: "cjs" },
output: { file: `cjs/${pkg.name}.js`, format: "cjs", esModule: false },
external: isBareModuleId,
plugins: [
babel({ exclude: /node_modules/ }),
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/rollup.config.js
Expand Up @@ -16,7 +16,7 @@ function isBareModuleId(id) {
const cjs = [
{
input: "modules/index.js",
output: { file: `cjs/${pkg.name}.js`, format: "cjs" },
output: { file: `cjs/${pkg.name}.js`, format: "cjs", esModule: false },
external: isBareModuleId,
plugins: [
babel({ exclude: /node_modules/ }),
Expand Down

0 comments on commit caa9950

Please sign in to comment.