Only resolve ligatures externals in commonjs environment

Part of microsoft/vscode#34103
This commit is contained in:
Daniel Imms
2024-11-01 07:18:27 -07:00
parent f701d073d1
commit 952ac61761
+4 -4
View File
@@ -31,10 +31,10 @@ module.exports = {
},
mode: 'production',
externals: {
'fs': 'fs',
'path': 'path',
'stream': 'stream',
'util': 'util'
'fs': 'commonjs fs',
'path': 'commonjs path',
'stream': 'commonjs stream',
'util': 'commonjs util'
},
resolve: {
// The ligature modules contains fallbacks for node environments, we never want to browserify them