This fixes the preview modifiers for dynamic configs, like app.config.js and app.config.ts.
Additional context
The workaround is kinda hacky, but it does work. The issue with "normally" bundling sucrase is that the esm exports aren't playing nice within sucrase. NameManager.mjs is imported with { esm: true, default: ... } while it doesn't expect that in the index.mjs, resulting in s cannot be instantiated errors.
It's probably our settings, since typescript doesn't complain about import vscode from 'vscode'; while I think only import * as vscode from 'vscode'; works. We probably need to dig into that later, and we could revert the workaround.
Linked issue
Fixes #62
This fixes the preview modifiers for dynamic configs, like
app.config.js
andapp.config.ts
.Additional context
The workaround is kinda hacky, but it does work. The issue with "normally" bundling sucrase is that the esm exports aren't playing nice within sucrase.
NameManager.mjs
is imported with{ esm: true, default: ... }
while it doesn't expect that in theindex.mjs
, resulting ins cannot be instantiated
errors.It's probably our settings, since typescript doesn't complain about
import vscode from 'vscode';
while I think onlyimport * as vscode from 'vscode';
works. We probably need to dig into that later, and we could revert the workaround.