@rollup/plugin-node-resolve 15.3.0 → 15.3.1
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 +3 -3
- package/dist/es/index.js +3 -3
- package/package.json +1 -1
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 = "15.3.
|
15
|
+
var version = "15.3.1";
|
16
16
|
var peerDependencies = {
|
17
17
|
rollup: "^2.78.0||^3.0.0||^4.0.0"
|
18
18
|
};
|
@@ -1307,7 +1307,7 @@ function nodeResolve(opts = {}) {
|
|
1307
1307
|
return importee;
|
1308
1308
|
}
|
1309
1309
|
// ignore IDs with null character, these belong to other plugins
|
1310
|
-
if (
|
1310
|
+
if (importee && importee.includes('\0')) return null;
|
1311
1311
|
|
1312
1312
|
const { custom = {} } = resolveOptions;
|
1313
1313
|
const { 'node-resolve': { resolved: alreadyResolved } = {} } = custom;
|
@@ -1315,7 +1315,7 @@ function nodeResolve(opts = {}) {
|
|
1315
1315
|
return alreadyResolved;
|
1316
1316
|
}
|
1317
1317
|
|
1318
|
-
if (
|
1318
|
+
if (importer && importer.includes('\0')) {
|
1319
1319
|
importer = undefined;
|
1320
1320
|
}
|
1321
1321
|
|
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 = "15.3.
|
11
|
+
var version = "15.3.1";
|
12
12
|
var peerDependencies = {
|
13
13
|
rollup: "^2.78.0||^3.0.0||^4.0.0"
|
14
14
|
};
|
@@ -1303,7 +1303,7 @@ function nodeResolve(opts = {}) {
|
|
1303
1303
|
return importee;
|
1304
1304
|
}
|
1305
1305
|
// ignore IDs with null character, these belong to other plugins
|
1306
|
-
if (
|
1306
|
+
if (importee && importee.includes('\0')) return null;
|
1307
1307
|
|
1308
1308
|
const { custom = {} } = resolveOptions;
|
1309
1309
|
const { 'node-resolve': { resolved: alreadyResolved } = {} } = custom;
|
@@ -1311,7 +1311,7 @@ function nodeResolve(opts = {}) {
|
|
1311
1311
|
return alreadyResolved;
|
1312
1312
|
}
|
1313
1313
|
|
1314
|
-
if (
|
1314
|
+
if (importer && importer.includes('\0')) {
|
1315
1315
|
importer = undefined;
|
1316
1316
|
}
|
1317
1317
|
|