Skip to content

Commit 56e92d4

Browse files
committed
fix: compile module to commonjs
1 parent d57d2c0 commit 56e92d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
2525

2626
/* Modules */
27-
"module": "esnext", /* Specify what module code is generated. */
27+
"module": "commonjs", /* Specify what module code is generated. */
2828
"rootDir": "./src", /* Specify the root folder within your source files. */
29-
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
29+
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
3030
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3131
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3232
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */

0 commit comments

Comments
 (0)