From d495fdd9ab6ea8f3371aeab97f784984abc87083 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Thu, 4 Aug 2022 10:01:58 -0700 Subject: [PATCH] Bring back webpack resolve config --- addons/xterm-addon-ligatures/webpack.config.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/addons/xterm-addon-ligatures/webpack.config.js b/addons/xterm-addon-ligatures/webpack.config.js index 97da1e17..5aeebe2e 100644 --- a/addons/xterm-addon-ligatures/webpack.config.js +++ b/addons/xterm-addon-ligatures/webpack.config.js @@ -27,5 +27,21 @@ module.exports = { library: addonName, libraryTarget: 'umd' }, - mode: 'production' + mode: 'production', + externals: { + 'fs': 'fs', + 'path': 'path', + 'stream': 'stream', + 'util': 'util' + }, + resolve: { + // The ligature modules contains fallbacks for node environments, we never want to browserify them + fallback: { + fs: false, + os: false, + path: false, + stream: false, + util: false + } + } };