@rollup/plugin-node-resolve 16.0.1 → 16.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -12,7 +12,7 @@ var url = require('url');
12
12
  var resolve = require('resolve');
13
13
  var pluginutils = require('@rollup/pluginutils');
14
14
 
15
- var version = "16.0.1";
15
+ var version = "16.0.2";
16
16
  var peerDependencies = {
17
17
  rollup: "^2.78.0||^3.0.0||^4.0.0"
18
18
  };
@@ -1167,7 +1167,7 @@ function nodeResolve(opts = {}) {
1167
1167
 
1168
1168
  const importSpecifierList = [importee];
1169
1169
 
1170
- if (importer === undefined && !importee[0].match(/^\.?\.?\//)) {
1170
+ if (importer === undefined && importee[0] && !importee[0].match(/^\.?\.?\//)) {
1171
1171
  // For module graph roots (i.e. when importer is undefined), we
1172
1172
  // need to handle 'path fragments` like `foo/bar` that are commonly
1173
1173
  // found in rollup config files. If importee doesn't look like a
package/dist/es/index.js CHANGED
@@ -8,7 +8,7 @@ import { pathToFileURL, fileURLToPath } from 'url';
8
8
  import resolve$1 from 'resolve';
9
9
  import { createFilter } from '@rollup/pluginutils';
10
10
 
11
- var version = "16.0.1";
11
+ var version = "16.0.2";
12
12
  var peerDependencies = {
13
13
  rollup: "^2.78.0||^3.0.0||^4.0.0"
14
14
  };
@@ -1163,7 +1163,7 @@ function nodeResolve(opts = {}) {
1163
1163
 
1164
1164
  const importSpecifierList = [importee];
1165
1165
 
1166
- if (importer === undefined && !importee[0].match(/^\.?\.?\//)) {
1166
+ if (importer === undefined && importee[0] && !importee[0].match(/^\.?\.?\//)) {
1167
1167
  // For module graph roots (i.e. when importer is undefined), we
1168
1168
  // need to handle 'path fragments` like `foo/bar` that are commonly
1169
1169
  // found in rollup config files. If importee doesn't look like a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/plugin-node-resolve",
3
- "version": "16.0.1",
3
+ "version": "16.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },