mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #2531 from overleaf/ho-restore-lodash-2526
Revert "Reverts move from underscore to lodash" GitOrigin-RevId: 1ea964d5c98a85f9490c0e731d6a68335df93c67
This commit is contained in:
@@ -167,11 +167,8 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
{
|
||||
// Expose underscore global variable
|
||||
test: path.join(
|
||||
__dirname,
|
||||
`frontend/js/vendor/libs/${PackageVersions.lib('underscore')}.js`
|
||||
),
|
||||
// Expose lodash global variable
|
||||
test: require.resolve('lodash'),
|
||||
use: [
|
||||
{
|
||||
loader: 'expose-loader',
|
||||
@@ -257,11 +254,5 @@ module.exports = {
|
||||
// to provide support for non-Latin characters
|
||||
{ from: 'node_modules/pdfjs-dist/cmaps', to: 'js/cmaps' }
|
||||
])
|
||||
],
|
||||
|
||||
// If underscore is required by another dependency *don't* include in the
|
||||
// bundle and use the relevant global variable instead
|
||||
externals: {
|
||||
underscore: '_'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user