@rollup/plugin-node-resolve 16.0.0 → 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/README.md CHANGED
@@ -181,6 +181,9 @@ rootDir: path.join(process.cwd(), '..')
181
181
 
182
182
  ### `ignoreSideEffectsForRoot`
183
183
 
184
+ Type: `Boolean`<br>
185
+ Default: `false`
186
+
184
187
  If you use the `sideEffects` property in the package.json, by default this is respected for files in the root package. Set to `true` to ignore the `sideEffects` configuration for the root package.
185
188
 
186
189
  ### `allowExportsFolderMapping`
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.0";
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.0";
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.0",
3
+ "version": "16.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/types/index.d.ts CHANGED
@@ -99,6 +99,13 @@ export interface RollupNodeResolveOptions {
99
99
  */
100
100
  rootDir?: string;
101
101
 
102
+ /**
103
+ * If you use the `sideEffects` property in the package.json, by default this is respected for files in the root package. Set to `true` to ignore the `sideEffects` configuration for the root package.
104
+ *
105
+ * @default false
106
+ */
107
+ ignoreSideEffectsForRoot?: boolean;
108
+
102
109
  /**
103
110
  * Allow folder mappings in package exports (trailing /)
104
111
  * This was deprecated in Node 14 and removed with Node 17, see DEP0148.