mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Make wasm files load on ssr (#4942)
* Make wasm files load on ssr * Upgrade React for tests
This commit is contained in:
parent
b990b29d2d
commit
2e62b87fff
|
@ -13,7 +13,7 @@ export default class NextJsSsrImportPlugin {
|
|||
// Make sure even in windows, the path looks like in unix
|
||||
// Node.js require system will convert it accordingly
|
||||
const relativePathToBaseDirNormalized = relativePathToBaseDir.replace(/\\/g, '/')
|
||||
return code.replace('require("./"', `require("${relativePathToBaseDirNormalized}/"`)
|
||||
return code.replace('require("./"', `require("${relativePathToBaseDirNormalized}/"`).replace('readFile(join(__dirname', `readFile(join(__dirname, "${relativePathToBaseDirNormalized}"`)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
@ -143,8 +143,8 @@
|
|||
"node-notifier": "5.1.2",
|
||||
"node-sass": "4.9.2",
|
||||
"nyc": "11.2.1",
|
||||
"react": "16.4.0",
|
||||
"react-dom": "16.4.0",
|
||||
"react": "16.4.2",
|
||||
"react-dom": "16.4.2",
|
||||
"rimraf": "2.6.2",
|
||||
"standard": "11.0.1",
|
||||
"taskr": "1.1.0",
|
||||
|
|
Loading…
Reference in a new issue