mirror of
https://github.com/hanzoai/ts-node.git
synced 2026-10-30 19:36:25 +00:00
* 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]>
8 lines
325 B
JavaScript
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' } });
|