Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Make extension (syntax highlighting for now) work in vscode web #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

haikyuu
Copy link

@haikyuu haikyuu commented Sep 3, 2021

This fixes #111

I have introduced webpack as a bundler (only) because it's indicated in the official docs. So that was the easiest way of doing it. Basically what it does is the following:

  • Take the extension .js built file as an input
  • Shim native node modules with browser compatible ones.
  • Use a noop fallback for node-ipc
  • Perform a build.

We could quite easily do the same with esbuild as I have built a couple of plugins for it before. But I'd wait until we expose esbuild config from imba.

I tested in Webkit browser locally and it looks like this
image

@haikyuu haikyuu changed the title Merge branch 'master' of https://github.com/imba/vscode-imba Make extension (syntax highlighting for now) work in vscode web Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the extension (or a part of it) run on vscode web
1 participant