mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
cts/mts support (#451)
Adding cts/mts/d.cts/d.mts to the known typescript filetypes
This commit is contained in:
parent
f8613507cb
commit
2cb2660e5c
6
dist/rollup-plugin-typescript2.cjs.js
vendored
6
dist/rollup-plugin-typescript2.cjs.js
vendored
@ -27985,8 +27985,8 @@ const typescript = (options) => {
|
||||
verbosity: VerbosityLevel.Warning,
|
||||
clean: false,
|
||||
cacheRoot: findCacheDir({ name: "rollup-plugin-typescript2" }),
|
||||
include: ["*.ts+(|x)", "**/*.ts+(|x)"],
|
||||
exclude: ["*.d.ts", "**/*.d.ts"],
|
||||
include: ["*.ts+(|x)", "**/*.ts+(|x)", "**/*.cts", "**/*.mts"],
|
||||
exclude: ["*.d.ts", "**/*.d.ts", "**/*.d.cts", "**/*.d.mts"],
|
||||
abortOnError: true,
|
||||
rollupCommonJSResolveHack: false,
|
||||
tsconfig: undefined,
|
||||
@ -28114,7 +28114,7 @@ const typescript = (options) => {
|
||||
// Rollup can't see these otherwise, because they are "emit-less" and produce no JS
|
||||
if (result.references && supportsThisLoad) {
|
||||
for (const ref of result.references) {
|
||||
if (ref.endsWith(".d.ts"))
|
||||
if (!filter(ref))
|
||||
continue;
|
||||
const module = yield this.resolve(ref, id);
|
||||
if (!module || transformedFiles.has(module.id)) // check for circular references (per https://rollupjs.org/guide/en/#thisload)
|
||||
|
||||
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
6
dist/rollup-plugin-typescript2.es.js
vendored
6
dist/rollup-plugin-typescript2.es.js
vendored
@ -27956,8 +27956,8 @@ const typescript = (options) => {
|
||||
verbosity: VerbosityLevel.Warning,
|
||||
clean: false,
|
||||
cacheRoot: findCacheDir({ name: "rollup-plugin-typescript2" }),
|
||||
include: ["*.ts+(|x)", "**/*.ts+(|x)"],
|
||||
exclude: ["*.d.ts", "**/*.d.ts"],
|
||||
include: ["*.ts+(|x)", "**/*.ts+(|x)", "**/*.cts", "**/*.mts"],
|
||||
exclude: ["*.d.ts", "**/*.d.ts", "**/*.d.cts", "**/*.d.mts"],
|
||||
abortOnError: true,
|
||||
rollupCommonJSResolveHack: false,
|
||||
tsconfig: undefined,
|
||||
@ -28085,7 +28085,7 @@ const typescript = (options) => {
|
||||
// Rollup can't see these otherwise, because they are "emit-less" and produce no JS
|
||||
if (result.references && supportsThisLoad) {
|
||||
for (const ref of result.references) {
|
||||
if (ref.endsWith(".d.ts"))
|
||||
if (!filter(ref))
|
||||
continue;
|
||||
const module = yield this.resolve(ref, id);
|
||||
if (!module || transformedFiles.has(module.id)) // check for circular references (per https://rollupjs.org/guide/en/#thisload)
|
||||
|
||||
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
@ -95,8 +95,8 @@ const typescript: PluginImpl<RPT2Options> = (options) =>
|
||||
verbosity: VerbosityLevel.Warning,
|
||||
clean: false,
|
||||
cacheRoot: findCacheDir({ name: "rollup-plugin-typescript2" }),
|
||||
include: ["*.ts+(|x)", "**/*.ts+(|x)"],
|
||||
exclude: ["*.d.ts", "**/*.d.ts"],
|
||||
include: ["*.ts+(|x)", "**/*.ts+(|x)", "**/*.cts", "**/*.mts"],
|
||||
exclude: ["*.d.ts", "**/*.d.ts", "**/*.d.cts", "**/*.d.mts"],
|
||||
abortOnError: true,
|
||||
rollupCommonJSResolveHack: false,
|
||||
tsconfig: undefined,
|
||||
@ -277,7 +277,7 @@ const typescript: PluginImpl<RPT2Options> = (options) =>
|
||||
// Rollup can't see these otherwise, because they are "emit-less" and produce no JS
|
||||
if (result.references && supportsThisLoad) {
|
||||
for (const ref of result.references) {
|
||||
if (ref.endsWith(".d.ts"))
|
||||
if (!filter(ref))
|
||||
continue;
|
||||
|
||||
const module = await this.resolve(ref, id);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user