From d21603707edfaab292cb3190881efda9a07195cd Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Sun, 9 Sep 2018 01:10:47 +0200 Subject: [PATCH] Set cwd on babel-loader (#5127) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 🙏 --- build/webpack.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/webpack.js b/build/webpack.js index dbc7e91c..3fa51d75 100644 --- a/build/webpack.js +++ b/build/webpack.js @@ -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', diff --git a/package.json b/package.json index e0e8294f..bdce33eb 100644 --- a/package.json +++ b/package.json @@ -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",