@rollup/plugin-typescript
Advanced tools
Comparing version 11.1.4 to 11.1.5
@@ -12,2 +12,3 @@ 'use strict'; | ||
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null; | ||
function _interopNamespaceDefault(e) { | ||
@@ -101,3 +102,3 @@ var n = Object.create(null); | ||
// @ts-ignore import.meta.url is allowed because the Rollup plugin injects the correct module format | ||
basedir: url.fileURLToPath(new URL('.', (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href)))) | ||
basedir: url.fileURLToPath(new URL('.', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.js', document.baseURI).href)))) | ||
}); | ||
@@ -535,7 +536,7 @@ } | ||
// eslint-disable-next-line import/prefer-default-export | ||
const preflight = ({ config, context, rollupOptions, tslib }) => { | ||
const preflight = ({ config, context, inputPreserveModules, tslib }) => { | ||
if (!validModules.includes(config.options.module)) { | ||
context.warn(moduleErrorMessage); | ||
} | ||
if (!rollupOptions.preserveModules && tslib === null) { | ||
if (!inputPreserveModules && tslib === null) { | ||
context.error(tsLibErrorMessage); | ||
@@ -791,3 +792,10 @@ } | ||
emitParsedOptionsErrors(ts, this, parsedOptions); | ||
preflight({ config: parsedOptions, context: this, rollupOptions, tslib }); | ||
preflight({ | ||
config: parsedOptions, | ||
context: this, | ||
// TODO drop rollup@3 support and remove | ||
inputPreserveModules: rollupOptions | ||
.preserveModules, | ||
tslib | ||
}); | ||
// Fixes a memory leak https://github.com/rollup/plugins/issues/322 | ||
@@ -863,2 +871,3 @@ if (this.meta.watchMode !== true) { | ||
return null; | ||
this.addWatchFile(id); | ||
await watchProgramHelper.wait(); | ||
@@ -865,0 +874,0 @@ const fileName = normalizePath(id); |
@@ -511,7 +511,7 @@ import * as path from 'path'; | ||
// eslint-disable-next-line import/prefer-default-export | ||
const preflight = ({ config, context, rollupOptions, tslib }) => { | ||
const preflight = ({ config, context, inputPreserveModules, tslib }) => { | ||
if (!validModules.includes(config.options.module)) { | ||
context.warn(moduleErrorMessage); | ||
} | ||
if (!rollupOptions.preserveModules && tslib === null) { | ||
if (!inputPreserveModules && tslib === null) { | ||
context.error(tsLibErrorMessage); | ||
@@ -767,3 +767,10 @@ } | ||
emitParsedOptionsErrors(ts, this, parsedOptions); | ||
preflight({ config: parsedOptions, context: this, rollupOptions, tslib }); | ||
preflight({ | ||
config: parsedOptions, | ||
context: this, | ||
// TODO drop rollup@3 support and remove | ||
inputPreserveModules: rollupOptions | ||
.preserveModules, | ||
tslib | ||
}); | ||
// Fixes a memory leak https://github.com/rollup/plugins/issues/322 | ||
@@ -839,2 +846,3 @@ if (this.meta.watchMode !== true) { | ||
return null; | ||
this.addWatchFile(id); | ||
await watchProgramHelper.wait(); | ||
@@ -841,0 +849,0 @@ const fileName = normalizePath(id); |
{ | ||
"name": "@rollup/plugin-typescript", | ||
"version": "11.1.4", | ||
"version": "11.1.5", | ||
"publishConfig": { | ||
@@ -54,3 +54,3 @@ "access": "public" | ||
"peerDependencies": { | ||
"rollup": "^2.14.0||^3.0.0", | ||
"rollup": "^2.14.0||^3.0.0||^4.0.0", | ||
"tslib": "*", | ||
@@ -77,3 +77,3 @@ "typescript": ">=3.7.0" | ||
"buble": "^0.20.0", | ||
"rollup": "^3.2.3", | ||
"rollup": "^4.0.0-24", | ||
"typescript": "^4.8.3" | ||
@@ -80,0 +80,0 @@ }, |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
94082
1886
1