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:
Tim Neutkens 2018-09-09 01:10:47 +02:00 committed by GitHub
parent fd67f22b65
commit d21603707e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ export default async function getBaseWebpackConfig (dir: string, {dev = false, i
const defaultLoaders = {
babel: {
loader: 'next-babel-loader',
options: {dev, isServer}
options: {dev, isServer, cwd: dir}
},
hotSelfAccept: {
loader: 'hot-self-accept-loader',

View file

@ -75,7 +75,7 @@
"ansi-html": "0.0.7",
"autodll-webpack-plugin": "0.4.2",
"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-transform-react-remove-prop-types": "0.4.15",
"case-sensitive-paths-webpack-plugin": "2.1.2",