Skip to content

Commit

Permalink
Fix a bug that causes conflicts with other plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
haensl committed Feb 23, 2019
1 parent 440ae75 commit d2d6c15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d2d6c15

Please sign in to comment.