Skip to content

Commit d2d6c15

Browse files
committed
Fix a bug that causes conflicts with other plugins.
1 parent 440ae75 commit d2d6c15

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.0.5
2+
* Fix a bug that causes resolving conflicts with other plugins.
3+
14
## 1.0.4
25
* Fix a bug that causes resolving conflicts with other plugins.
36

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@haensl/rollup-plugin-local-resolve",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Rollup plugin to resolve relative imports from local folders without stating the index file",
55
"main": "dist/rollup-plugin-local-resolve.cjs.js",
66
"module": "dist/rollup-plugin-local-resolve.es.js",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const resolve = () => ({
55
name: '@haensl/rollup-plugin-local-resolve',
66
resolveId: (importee, importer) => {
77
if (path.isAbsolute(importee)
8-
|| path.basename(importee) === importee) {
8+
|| /\0/.test(importee)) {
99
return Promise.resolve(null);
1010
}
1111

0 commit comments

Comments
 (0)