fix: use lodash-es in the client (#41931)
This commit is contained in:
committed by
GitHub
parent
db369fbed1
commit
9be2fb9a10
@ -2,6 +2,8 @@ const env = require('../config/env');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const { createFilePath } = require('gatsby-source-filesystem');
|
||||
// TODO: ideally we'd remove lodash and just use lodash-es, but we can't require
|
||||
// es modules here.
|
||||
const uniq = require('lodash/uniq');
|
||||
|
||||
const { blockNameify } = require('../utils/block-nameify');
|
||||
@ -231,10 +233,6 @@ exports.onCreateBabelConfig = ({ actions }) => {
|
||||
'@freecodecamp/react-bootstrap': {
|
||||
transform: '@freecodecamp/react-bootstrap/lib/${member}',
|
||||
preventFullImport: true
|
||||
},
|
||||
lodash: {
|
||||
transform: 'lodash/${member}',
|
||||
preventFullImport: true
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user