Skip to content

Commit f6a302f

Browse files
committed
Setup transpilation of linked sources in Next.js example.
1 parent 690e6a6 commit f6a302f

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

examples/with-nextjs/next.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const withTM = require("@weco/next-plugin-transpile-modules")
2+
3+
module.exports = withTM({
4+
transpileModules: [
5+
"react-async",
6+
"react-async-devtools"
7+
]
8+
})

examples/with-nextjs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"author": "",
1414
"license": "ISC",
1515
"dependencies": {
16+
"@weco/next-plugin-transpile-modules": "^2.2.1",
1617
"isomorphic-fetch": "2.2.1",
1718
"next": "8.0.3",
1819
"react": "16.8.5",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3776,6 +3776,11 @@
37763776
"@webassemblyjs/wast-parser" "1.8.5"
37773777
"@xtuc/long" "4.2.2"
37783778

3779+
"@weco/next-plugin-transpile-modules@^2.2.1":
3780+
version "2.2.1"
3781+
resolved "https://registry.yarnpkg.com/@weco/next-plugin-transpile-modules/-/next-plugin-transpile-modules-2.2.1.tgz#7ca35e6ee1589f58fc1dd5320df73ae2bc9a6fd5"
3782+
integrity sha512-UM5jimB3QBHH50bcWr6DENDF+uUCf7lD2IeG36S6w6/Dn0LnPulF7wIeSBdN5vHnbnjDRd784DCEIoeu94ZopA==
3783+
37793784
"@xtuc/ieee754@^1.2.0":
37803785
version "1.2.0"
37813786
resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"

0 commit comments

Comments
 (0)