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 24f8acc commit 7b4eb7fCopy full SHA for 7b4eb7f
lib/loader.js
@@ -38,7 +38,8 @@ module.exports = function (source) {
38
'webpackConfig',
39
'htmlWebpackPlugin'
40
];
41
- return 'var _ = require(' + loaderUtils.stringifyRequest(this, require.resolve('lodash')) + ');' +
+ // Require !!lodash - using !! will disable all loaders (e.g. babel)
42
+ return 'var _ = require(' + loaderUtils.stringifyRequest(this, '!!' + require.resolve('lodash')) + ');' +
43
'module.exports = function (templateParams) {' +
44
// Declare the template variables in the outer scope of the
45
// lodash template to unwrap them
0 commit comments