ts-import-plugin
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -71,3 +71,3 @@ "use strict"; | ||
try { | ||
require.resolve(importPath); | ||
require.resolve(path_1.join(process.cwd(), 'node_modules', importPath)); | ||
var scriptNode = ts.createImportDeclaration(undefined, undefined, ts.createImportClause(struct.variableName || !options.transformToDefaultImport ? undefined : ts.createIdentifier(struct.importName), struct.variableName ? ts.createNamedImports([ | ||
@@ -74,0 +74,0 @@ ts.createImportSpecifier(options.transformToDefaultImport ? ts.createIdentifier('default') : ts.createIdentifier(struct.importName), ts.createIdentifier(struct.variableName)) |
{ | ||
"name": "ts-import-plugin", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "babel-plugin-import TypeScript version", | ||
@@ -50,3 +50,3 @@ "main": "index.js", | ||
"mocha": "^5.0.4", | ||
"nyc": "^11.4.1", | ||
"nyc": "^12.0.1", | ||
"react": "^16.2.0", | ||
@@ -53,0 +53,0 @@ "react-dom": "^16.2.0", |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
18800