79360930

Date: 2025-01-16 09:13:24
Score: 2.5
Natty:
Report link

As mentionned "The assert keyword is deprecated as of V8 v12.3 and is planned to be removed by v12.6."

You should now use "with" instead of "assert" like so :

const jsonModule = await import('./foo.json', {
  with: { type: 'json' }
});
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Théo Eschlimann