From f3495f30980257c3b27355170528587200834bdd Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Mon, 15 Apr 2024 14:46:16 -0400 Subject: [PATCH] Fix xterm.css not loading --- packages/terminal/rollup.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/terminal/rollup.config.js b/packages/terminal/rollup.config.js index 7aaa3ab6..1ce2a15b 100644 --- a/packages/terminal/rollup.config.js +++ b/packages/terminal/rollup.config.js @@ -45,7 +45,14 @@ export default { { src: 'assets/shell.html', dest: 'dist' }, { src: 'assets/normalize.css', dest: 'dist' }, { src: 'assets/style.css', dest: 'dist' }, - { src: 'node_modules/xterm/css/xterm.css', dest: 'dist' }, + + // We add this manually because there's no way to be sure + // _which_ node_modules directory is the correct one, since + // support for workspaces is under-documented and people may + // be using package managers other than npm. + { src: 'assets/xterm.css', dest: 'dist' }, + // { src: 'node_modules/xterm/css/xterm.css', dest: 'dist' }, + { src: configFile, dest: 'dist', rename: 'config.js' } ] }),