From 952ac617617678a0b2314e261fbe3e78995e2eb7 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 1 Nov 2024 07:18:27 -0700 Subject: [PATCH] Only resolve ligatures externals in commonjs environment Part of microsoft/vscode#34103 --- addons/addon-ligatures/webpack.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/addon-ligatures/webpack.config.js b/addons/addon-ligatures/webpack.config.js index f9e9f34784..c43d0a17ca 100644 --- a/addons/addon-ligatures/webpack.config.js +++ b/addons/addon-ligatures/webpack.config.js @@ -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