From 255b9db409000dda9984c856b195f6a31aed563e Mon Sep 17 00:00:00 2001 From: Jesse Hines Date: Sun, 9 Apr 2023 21:01:11 -0400 Subject: [PATCH] Use es2020 modules Using commonjs was causing issues with react-codemirror. See https://github.com/codemirror/dev/issues/528 and https://github.com/uiwjs/react-codemirror/issues/216 --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 027e1f1..f0b9dc9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ "target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ + "module": "es2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ // "lib": [], /* Specify library files to be included in the compilation. */ "allowJs": true, /* Allow javascript files to be compiled. */ // "checkJs": true, /* Report errors in .js files. */