diff --git a/CHANGELOG.md b/CHANGELOG.md index c1d68da..cf2001b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.5 +* Fix a bug that causes resolving conflicts with other plugins. + ## 1.0.4 * Fix a bug that causes resolving conflicts with other plugins. diff --git a/package.json b/package.json index 73d62fe..8cc366b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@haensl/rollup-plugin-local-resolve", - "version": "1.0.4", + "version": "1.0.5", "description": "Rollup plugin to resolve relative imports from local folders without stating the index file", "main": "dist/rollup-plugin-local-resolve.cjs.js", "module": "dist/rollup-plugin-local-resolve.es.js", diff --git a/src/index.js b/src/index.js index a8dd3a5..781e97a 100644 --- a/src/index.js +++ b/src/index.js @@ -5,7 +5,7 @@ const resolve = () => ({ name: '@haensl/rollup-plugin-local-resolve', resolveId: (importee, importer) => { if (path.isAbsolute(importee) - || path.basename(importee) === importee) { + || /\0/.test(importee)) { return Promise.resolve(null); }