-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actually dont import - causes issues
- Loading branch information
1 parent
8037766
commit 83e513b
Showing
5 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
/* | ||
Provides the async `import()` function to source code that needs it, | ||
without having it transpiled down to commonjs `require()` by TypeScript. | ||
See https://github.com/microsoft/TypeScript/issues/43329. | ||
*/ | ||
|
||
/** | ||
* Provides the async `import()` function to source code that needs it, | ||
* without having it transpiled down to commonjs `require()` by TypeScript. | ||
* See https://github.com/microsoft/TypeScript/issues/43329. | ||
* | ||
* @param {any} descriptor - A URL or path for the module to load | ||
* @return {Promise<any>} Promise that resolves to the loaded module | ||
*/ | ||
async function importer(descriptor) { | ||
return await import(descriptor) | ||
} | ||
|
||
module.exports = importer | ||
module.exports = { importer } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"esModuleInterop": true, | ||
"lib": ["es2019"], | ||
"module": "commonjs", | ||
|