-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7943 from ethereum/fix-code-splitting
Fix code splitting issue
- Loading branch information
Showing
6 changed files
with
79 additions
and
113 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
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,4 +1,11 @@ | ||
export * from "./Link" | ||
export * from "./Button" | ||
export * from "./Tag" | ||
export * from "./Modal" | ||
import { Button } from "./Button" | ||
import { Link } from "./Link" | ||
import { Tag } from "./Tag" | ||
import { Modal } from "./Modal" | ||
|
||
export default { | ||
Button, | ||
Link, | ||
Tag, | ||
Modal, | ||
} |
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 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Expose a custom webpack config in order to let netlify-lambda read it and | ||
// build the TS lambda functions. This way, netlify-lambda use the same | ||
// babel config that Gatsby does. | ||
module.exports = { | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.(m?js|ts)?$/, | ||
exclude: /(node_modules|bower_components)/, | ||
use: { | ||
loader: "babel-loader", | ||
options: { | ||
presets: [ | ||
"@babel/preset-typescript", | ||
[ | ||
"babel-preset-gatsby", | ||
{ | ||
targets: { | ||
browsers: [">0.25%", "not dead"], | ||
}, | ||
}, | ||
], | ||
], | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
} |
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