Do not use the old `import ... assert` syntax.
nicolo-ribaudo opened this issue · comments
Nicolò Ribaudo commented
This package is using the legacy "import assertions" proposal, to import a JSON file in
Line 20 in c8ffdda
That proposal now uses a different syntax: import info from './package.json' with { type: 'json' }
. The old syntax is only supported in Node.js and Chrome, and they are both planning to remove support for it (Node.js 22 next week, and Chrome 126 in June), so it will make this package not work anymore.
For more info, see tc39/proposal-import-attributes#135.
Cas_ commented
it was used because it was compatible with webpack, while with
wasnt, feel free to PR a fix