I'm using the polyfill in context with Jest and Vue in a TypeScript environment, and I get this error, because there seems to be an import statement in a JavaScript file. Would it help to rename it .mjs?
node_modules\element-internals-polyfill\dist\index.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { forceCustomStateSetPolyfill,
forceElementInternalsPolyfill, isElementInternalsSupported, } from "./element-internals.js";
^^^^^^
SyntaxError: Cannot use import statement outside a module
I'm using the polyfill in context with Jest and Vue in a TypeScript environment, and I get this error, because there seems to be an import statement in a JavaScript file. Would it help to rename it .mjs?