Files
7cc3edbe3c Import assertion support (#1559)
* json / wasm import assertion support.

* Addressing review feedback

* reformat

* fix mistakes in test

* add node 17 stable to test matrix

Co-authored-by: Andrew Bradley <[email protected]>
Co-authored-by: Andrew Bradley <[email protected]>
2022-01-21 11:50:30 -05:00

8 lines
325 B
JavaScript

import * as moduleA from './moduleA.mjs';
import * as moduleB from './moduleB.mjs' assert { foo: 'bar' };
import * as jsonModule from './jsonModuleA.json' assert { type: 'json' };
await import('./moduleC.mjs');
await import('./moduleD.mjs', { foo: 'bar' });
await import('./jsonModuleB.json', { assert: { type: 'json' } });