mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Set cwd on babel-loader (#5127)
Fixes #5125 I'm not sure if this is a bug in babel-loader / babel-core or not. But this will at least temporary fix it till I hear back from @loganfsmyth 🙏
This commit is contained in:
parent
fd67f22b65
commit
d21603707e
|
@ -113,7 +113,7 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
|
||||||
const defaultLoaders = {
|
const defaultLoaders = {
|
||||||
babel: {
|
babel: {
|
||||||
loader: 'next-babel-loader',
|
loader: 'next-babel-loader',
|
||||||
options: {dev, isServer}
|
options: {dev, isServer, cwd: dir}
|
||||||
},
|
},
|
||||||
hotSelfAccept: {
|
hotSelfAccept: {
|
||||||
loader: 'hot-self-accept-loader',
|
loader: 'hot-self-accept-loader',
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
"ansi-html": "0.0.7",
|
"ansi-html": "0.0.7",
|
||||||
"autodll-webpack-plugin": "0.4.2",
|
"autodll-webpack-plugin": "0.4.2",
|
||||||
"babel-core": "7.0.0-bridge.0",
|
"babel-core": "7.0.0-bridge.0",
|
||||||
"babel-loader": "8.0.0",
|
"babel-loader": "8.0.2",
|
||||||
"babel-plugin-react-require": "3.0.0",
|
"babel-plugin-react-require": "3.0.0",
|
||||||
"babel-plugin-transform-react-remove-prop-types": "0.4.15",
|
"babel-plugin-transform-react-remove-prop-types": "0.4.15",
|
||||||
"case-sensitive-paths-webpack-plugin": "2.1.2",
|
"case-sensitive-paths-webpack-plugin": "2.1.2",
|
||||||
|
|
Loading…
Reference in a new issue