@rollup/plugin-typescript
Advanced tools
Comparing version 11.1.3 to 11.1.4
@@ -437,2 +437,8 @@ 'use strict'; | ||
function isMapOutputFile(name) { | ||
return name.endsWith('.map'); | ||
} | ||
/** | ||
* Checks if the given OutputFile represents some TypeScript source map | ||
*/ | ||
function isTypeScriptMapOutputFile(name) { | ||
return name.endsWith('ts.map'); | ||
@@ -864,4 +870,4 @@ } | ||
async generateBundle(outputOptions) { | ||
const declarationAndMapFiles = [...emittedFiles.keys()].filter((fileName) => isDeclarationOutputFile(fileName) || isMapOutputFile(fileName)); | ||
declarationAndMapFiles.forEach((id) => { | ||
const declarationAndTypeScriptMapFiles = [...emittedFiles.keys()].filter((fileName) => isDeclarationOutputFile(fileName) || isTypeScriptMapOutputFile(fileName)); | ||
declarationAndTypeScriptMapFiles.forEach((id) => { | ||
const code = getEmittedFile(id, emittedFiles, tsCache); | ||
@@ -868,0 +874,0 @@ if (!code || !parsedOptions.options.declaration) { |
@@ -415,2 +415,8 @@ import * as path from 'path'; | ||
function isMapOutputFile(name) { | ||
return name.endsWith('.map'); | ||
} | ||
/** | ||
* Checks if the given OutputFile represents some TypeScript source map | ||
*/ | ||
function isTypeScriptMapOutputFile(name) { | ||
return name.endsWith('ts.map'); | ||
@@ -842,4 +848,4 @@ } | ||
async generateBundle(outputOptions) { | ||
const declarationAndMapFiles = [...emittedFiles.keys()].filter((fileName) => isDeclarationOutputFile(fileName) || isMapOutputFile(fileName)); | ||
declarationAndMapFiles.forEach((id) => { | ||
const declarationAndTypeScriptMapFiles = [...emittedFiles.keys()].filter((fileName) => isDeclarationOutputFile(fileName) || isTypeScriptMapOutputFile(fileName)); | ||
declarationAndTypeScriptMapFiles.forEach((id) => { | ||
const code = getEmittedFile(id, emittedFiles, tsCache); | ||
@@ -846,0 +852,0 @@ if (!code || !parsedOptions.options.declaration) { |
{ | ||
"name": "@rollup/plugin-typescript", | ||
"version": "11.1.3", | ||
"version": "11.1.4", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93533
1869