Skip to content

Add VSCode web version support in /dist/web#31

Open
LazaroOnline wants to merge 1 commit into
Hennamann:masterfrom
LazaroOnline:feature/add-vscode-web-support
Open

Add VSCode web version support in /dist/web#31
LazaroOnline wants to merge 1 commit into
Hennamann:masterfrom
LazaroOnline:feature/add-vscode-web-support

Conversation

@LazaroOnline

Copy link
Copy Markdown

To solve #30, This adds support for vscode web.
In the web version instead of running in node.js with a filesystem and "node_modules",
it runs inside a browser Web Worker, thus requiring to bundle any referenced library,
so it is not allowed to use require("") in the resulting output files.

With this change, the desktop version should still work,
it will use the entry point defined here:
"main": "./out/extension.js",
while the browser version will use this other entry point:
"browser": "./dist/web/extension.js",
which has bundled the required dependencies (js-beautify)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant