@flatjs/evolve-preset-babel
v2.1.5
Published
## Notes
Downloads
340
Readme
@flatjs/evolve-preset-babel
Notes
if you run into error Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
e.g. https://github.com/microsoft/vscode-webview-ui-toolkit you may need to setup
@babel/plugin-transform-classes` as below shown.
// Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
[babelPluginTransformClass, { loose: false }];
babelOptions: {
plugins: [
[
env.resolve(import.meta.url, '@babel/plugin-transform-classes'),
{
loose: false,
},
],
],
},