build: set modlue to "esnext" to support all generators and bundling mode (nodenext does not work for our modules)

This commit is contained in:
Jacob Overgaard
2024-09-12 13:48:40 +02:00
parent eed53fba54
commit 259157de19
2 changed files with 4 additions and 5 deletions

View File

@@ -17,7 +17,8 @@ DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js
const tsConfigBase = {
compilerOptions: {
module: 'nodenext',
module: 'esnext',
moduleResolution: 'bundler',
moduleDetection: 'force',
verbatimModuleSyntax: true,
target: 'es2022',
@@ -31,8 +32,6 @@ const tsConfigBase = {
incremental: true,
skipLibCheck: true,
noImplicitOverride: true,
/* Bundler mode */
moduleResolution: 'bundler',
allowImportingTsExtensions: true,
resolveJsonModule: true,
isolatedModules: true,

View File

@@ -9,7 +9,8 @@ DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js
--------------------------------------------------------------------------- */
{
"compilerOptions": {
"module": "nodenext",
"module": "esnext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"verbatimModuleSyntax": true,
"target": "es2022",
@@ -23,7 +24,6 @@ DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js
"incremental": true,
"skipLibCheck": true,
"noImplicitOverride": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,