Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rollup/plugin-typescript

Package Overview
Dependencies
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-typescript - npm Package Compare versions

Comparing version 11.1.1 to 11.1.2

15

dist/cjs/index.js

@@ -65,3 +65,3 @@ 'use strict';

*/
function createModuleResolver(ts, host) {
function createModuleResolver(ts, host, filter) {
const compilerOptions = host.getCompilationSettings();

@@ -71,4 +71,11 @@ const cache = ts.createModuleResolutionCache(process.cwd(), host.getCanonicalFileName, compilerOptions);

return (moduleName, containingFile, redirectedReference, mode) => {
const resolved = ts.resolveModuleName(moduleName, containingFile, compilerOptions, moduleHost, cache, redirectedReference, mode);
return resolved.resolvedModule;
const { resolvedModule } = ts.resolveModuleName(moduleName, containingFile, compilerOptions, moduleHost, cache, redirectedReference, mode);
/**
* If the module's path contains 'node_modules', ts considers it an external library and refuses to compile it,
* so we have to change the value of `isExternalLibraryImport` to false if it's true
* */
if ((resolvedModule === null || resolvedModule === void 0 ? void 0 : resolvedModule.isExternalLibraryImport) && filter(resolvedModule === null || resolvedModule === void 0 ? void 0 : resolvedModule.resolvedFileName)) {
resolvedModule.isExternalLibraryImport = false;
}
return resolvedModule;
};

@@ -765,3 +772,3 @@ }

const formatHost = createFormattingHost(ts, parsedOptions.options);
const resolveModule = createModuleResolver(ts, formatHost);
const resolveModule = createModuleResolver(ts, formatHost, filter);
let program = null;

@@ -768,0 +775,0 @@ return {

@@ -43,3 +43,3 @@ import * as path from 'path';

*/
function createModuleResolver(ts, host) {
function createModuleResolver(ts, host, filter) {
const compilerOptions = host.getCompilationSettings();

@@ -49,4 +49,11 @@ const cache = ts.createModuleResolutionCache(process.cwd(), host.getCanonicalFileName, compilerOptions);

return (moduleName, containingFile, redirectedReference, mode) => {
const resolved = ts.resolveModuleName(moduleName, containingFile, compilerOptions, moduleHost, cache, redirectedReference, mode);
return resolved.resolvedModule;
const { resolvedModule } = ts.resolveModuleName(moduleName, containingFile, compilerOptions, moduleHost, cache, redirectedReference, mode);
/**
* If the module's path contains 'node_modules', ts considers it an external library and refuses to compile it,
* so we have to change the value of `isExternalLibraryImport` to false if it's true
* */
if ((resolvedModule === null || resolvedModule === void 0 ? void 0 : resolvedModule.isExternalLibraryImport) && filter(resolvedModule === null || resolvedModule === void 0 ? void 0 : resolvedModule.resolvedFileName)) {
resolvedModule.isExternalLibraryImport = false;
}
return resolvedModule;
};

@@ -743,3 +750,3 @@ }

const formatHost = createFormattingHost(ts, parsedOptions.options);
const resolveModule = createModuleResolver(ts, formatHost);
const resolveModule = createModuleResolver(ts, formatHost, filter);
let program = null;

@@ -746,0 +753,0 @@ return {

{
"name": "@rollup/plugin-typescript",
"version": "11.1.1",
"version": "11.1.2",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc