-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
After the babel change I now can no longer require xterm.js into vscode as it complains about import.
❯ ./scripts/code.sh
[5545:0915/162832:ERROR:browser_main_loop.cc(231)] Running without the SUID sandbox! See https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_devel
opment.md for more information on developing with the sandbox on.
[5545:0915/162833:INFO:CONSOLE(136)] "Loading "xterm" failed", source: file:///home/daniel/dev/Microsoft/vscode/out/vs/loader.js (136)
[5545:0915/162833:INFO:CONSOLE(137)] "Detail: ", source: file:///home/daniel/dev/Microsoft/vscode/out/vs/loader.js (137)
[5545:0915/162833:INFO:CONSOLE(139)] "/home/daniel/dev/Microsoft/vscode/node_modules/xterm/src/xterm.js:34
import { CompositionHelper } from './CompositionHelper.js';
^^^^^^
SyntaxError: Unexpected token import
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:513:28)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at nodeRequire (file:///home/daniel/dev/Microsoft/vscode/out/vs/loader.js:1908:25)
at NodeScriptLoader.load (file:///home/daniel/dev/Microsoft/vscode/out/vs/loader.js:1718:37)", source: file:///home/daniel/dev/Microsoft/vscode/out/vs/loader.js (139)
[5545:0915/162833:INFO:CONSOLE(141)] "Here are the modules that depend on it:", source: file:///home/daniel/dev/Microsoft/vscode/out/vs/loader.js (141)
[5545:0915/162833:INFO:CONSOLE(142)] "vs/workbench/parts/terminal/electron-browser/terminalInstance", source: file:///home/daniel/dev/Microsoft/vscode/out/vs/loader.js (142)
Not sure if this is because we're using import incorrectly or maybe it's just not supported by our module loader.
Regardless, after #269 is applied, I then need to manually run npm i && npm run build
in order to require xterm.js. So I'm going to need to keep a branch on my fork for the release that I sync to a commit, build and then check in the build files since they no longer ship with the repo and they don't install automatically with the module.
Maybe this doesn't matter in general since most people will not want to ship non-release versions. Wondering if this was considered with the new build and if there is anything we can do to make it easier for anyone to run on an arbitrary commit?