mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
13 lines
239 B
TypeScript
13 lines
239 B
TypeScript
// @target: ES6
|
|
// @module: commonjs
|
|
// @filename: a.ts
|
|
const x = new Promise( ( resolve, reject ) => { resolve( {} ); } );
|
|
export default x;
|
|
|
|
// @filename: b.ts
|
|
import x from './a';
|
|
|
|
( async function() {
|
|
const value = await x;
|
|
}() );
|