We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34ab29b commit c57cb87Copy full SHA for c57cb87
src/internals/webpack/features/lodash.js
@@ -1,7 +1,9 @@
1
// @flow
2
3
+import findCacheDir from 'find-cache-dir';
4
import fs from 'fs';
5
import path from 'path';
6
+import frameworkMetadata from '../../../shared/framework-metadata';
7
import BaseFeature from '../BaseFeature';
8
import type WebpackConfigBuilder from '../WebpackConfigBuilder';
9
@@ -38,7 +40,12 @@ export default class LodashFeature extends BaseFeature {
38
40
exclude: [getLodashDir()],
39
41
options: {
42
babelrc: false,
43
+ configFile: false,
44
plugins: ['lodash', '@babel/plugin-syntax-dynamic-import'],
45
+ cacheDirectory: `${findCacheDir({
46
+ name: frameworkMetadata.name,
47
+ })}/babel-lodash`,
48
+ sourceType: 'unambiguous',
49
},
50
});
51
}
0 commit comments