We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ae8a7b commit fc0c1c3Copy full SHA for fc0c1c3
1 file changed
webpack/base.config.js
@@ -6,7 +6,13 @@ import yargs from 'yargs';
6
const babelCache = path.resolve(path.join(__dirname, '../.babel-cache'));
7
8
if (!fs.existsSync(babelCache)) {
9
- fs.mkdirSync(babelCache);
+ try {
10
+ fs.mkdirSync(babelCache);
11
+ } catch (err) {
12
+ if (err.code !== 'EEXIST') {
13
+ console.error(err.stack);
14
+ }
15
16
}
17
18
export const options = yargs
0 commit comments