rollup-plugin-node-resolve
Advanced tools
Comparing version 1.6.0 to 1.7.0
# rollup-plugin-node-resolve changelog | ||
## 1.7.0 | ||
* Allow relative IDs to be external ([#32](https://github.com/rollup/rollup-plugin-node-resolve/pull/32)) | ||
## 1.6.0 | ||
@@ -4,0 +8,0 @@ |
@@ -37,5 +37,8 @@ 'use strict'; | ||
// scoped packages | ||
if ( id[0] === '@' && parts.length ) { | ||
// scoped packages | ||
id += "/" + (parts.shift()); | ||
} else if ( id[0] === '.' ) { | ||
// an import relative to the parent dir of the importer | ||
id = path.resolve( importer, '..', importee ); | ||
} | ||
@@ -42,0 +45,0 @@ |
@@ -33,5 +33,8 @@ import { resolve, dirname } from 'path'; | ||
// scoped packages | ||
if ( id[0] === '@' && parts.length ) { | ||
// scoped packages | ||
id += "/" + (parts.shift()); | ||
} else if ( id[0] === '.' ) { | ||
// an import relative to the parent dir of the importer | ||
id = resolve( importer, '..', importee ); | ||
} | ||
@@ -38,0 +41,0 @@ |
{ | ||
"name": "rollup-plugin-node-resolve", | ||
"description": "Bundle third-party dependencies in node_modules", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"devDependencies": { | ||
@@ -6,0 +6,0 @@ "buble": "^0.10.6", |
@@ -28,5 +28,8 @@ import { dirname, resolve } from 'path'; | ||
// scoped packages | ||
if ( id[0] === '@' && parts.length ) { | ||
// scoped packages | ||
id += `/${parts.shift()}`; | ||
} else if ( id[0] === '.' ) { | ||
// an import relative to the parent dir of the importer | ||
id = resolve( importer, '..', importee ); | ||
} | ||
@@ -33,0 +36,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12280
251
0