mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
- allowing ES2020 module type in tsconfig
This commit is contained in:
parent
bd2e04317b
commit
eb1dd17bab
2
dist/rollup-plugin-typescript2.cjs.js
vendored
2
dist/rollup-plugin-typescript2.cjs.js
vendored
@ -25121,7 +25121,7 @@ function createFilter(context, pluginOptions, parsedConfig) {
|
||||
|
||||
function checkTsConfig(parsedConfig) {
|
||||
const module = parsedConfig.options.module;
|
||||
if (module !== tsModule.ModuleKind.ES2015 && module !== tsModule.ModuleKind.ESNext)
|
||||
if (module !== tsModule.ModuleKind.ES2015 && module !== tsModule.ModuleKind.ESNext && module !== tsModule.ModuleKind.ES2020)
|
||||
throw new Error(`Incompatible tsconfig option. Module resolves to '${tsModule.ModuleKind[module]}'. This is incompatible with rollup, please use 'module: "ES2015"' or 'module: "ESNext"'.`);
|
||||
}
|
||||
|
||||
|
||||
2
dist/rollup-plugin-typescript2.cjs.js.map
vendored
2
dist/rollup-plugin-typescript2.cjs.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/rollup-plugin-typescript2.es.js
vendored
2
dist/rollup-plugin-typescript2.es.js
vendored
@ -25111,7 +25111,7 @@ function createFilter(context, pluginOptions, parsedConfig) {
|
||||
|
||||
function checkTsConfig(parsedConfig) {
|
||||
const module = parsedConfig.options.module;
|
||||
if (module !== tsModule.ModuleKind.ES2015 && module !== tsModule.ModuleKind.ESNext)
|
||||
if (module !== tsModule.ModuleKind.ES2015 && module !== tsModule.ModuleKind.ESNext && module !== tsModule.ModuleKind.ES2020)
|
||||
throw new Error(`Incompatible tsconfig option. Module resolves to '${tsModule.ModuleKind[module]}'. This is incompatible with rollup, please use 'module: "ES2015"' or 'module: "ESNext"'.`);
|
||||
}
|
||||
|
||||
|
||||
2
dist/rollup-plugin-typescript2.es.js.map
vendored
2
dist/rollup-plugin-typescript2.es.js.map
vendored
File diff suppressed because one or more lines are too long
@ -5,6 +5,6 @@ export function checkTsConfig(parsedConfig: tsTypes.ParsedCommandLine): void
|
||||
{
|
||||
const module = parsedConfig.options.module!;
|
||||
|
||||
if (module !== tsModule.ModuleKind.ES2015 && module !== tsModule.ModuleKind.ESNext)
|
||||
if (module !== tsModule.ModuleKind.ES2015 && module !== tsModule.ModuleKind.ESNext && module !== tsModule.ModuleKind.ES2020)
|
||||
throw new Error(`Incompatible tsconfig option. Module resolves to '${tsModule.ModuleKind[module]}'. This is incompatible with rollup, please use 'module: "ES2015"' or 'module: "ESNext"'.`);
|
||||
}
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
"extends": "./tsconfig.base",
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "ES2020",
|
||||
"noImplicitAny": true,
|
||||
"sourceMap": true,
|
||||
"noUnusedParameters": true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user