mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
19 lines
465 B
TypeScript
19 lines
465 B
TypeScript
// @module: commonjs
|
|
// @target: es6
|
|
// @noImplicitAny: false
|
|
// @declaration: true
|
|
|
|
declare function getSpecifier(): string;
|
|
declare var whatToLoad: boolean;
|
|
declare const directory: string;
|
|
declare const moduleFile: number;
|
|
|
|
import(getSpecifier());
|
|
|
|
var p0 = import(`${directory}\\${moduleFile}`);
|
|
var p1 = import(getSpecifier());
|
|
const p2 = import(whatToLoad ? getSpecifier() : "defaulPath")
|
|
|
|
function returnDynamicLoad(path: string) {
|
|
return import(path);
|
|
} |