@rollup/plugin-commonjs 25.0.0 → 25.0.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 CHANGED
@@ -11,7 +11,7 @@ var estreeWalker = require('estree-walker');
11
11
  var MagicString = require('magic-string');
12
12
  var isReference = require('is-reference');
13
13
 
14
- var version = "25.0.0";
14
+ var version = "25.0.1";
15
15
  var peerDependencies = {
16
16
  rollup: "^2.68.0||^3.0.0"
17
17
  };
@@ -2092,15 +2092,15 @@ function commonjs(options = {}) {
2092
2092
  !isEsModule && (dynamicRequireModules.has(normalizedId) || strictRequiresFilter(id));
2093
2093
 
2094
2094
  const checkDynamicRequire = (position) => {
2095
- const normalizedRequireRoot = normalizePathSlashes(dynamicRequireRoot);
2095
+ const normalizedDynamicRequireRoot = normalizePathSlashes(dynamicRequireRoot);
2096
2096
 
2097
- if (normalizedId.indexOf(normalizedRequireRoot) !== 0) {
2097
+ if (normalizedId.indexOf(normalizedDynamicRequireRoot) !== 0) {
2098
2098
  this.error(
2099
2099
  {
2100
2100
  code: 'DYNAMIC_REQUIRE_OUTSIDE_ROOT',
2101
2101
  normalizedId,
2102
- dynamicRequireRoot,
2103
- message: `"${normalizedId}" contains dynamic require statements but it is not within the current dynamicRequireRoot "${normalizedRequireRoot}". You should set dynamicRequireRoot to "${path.dirname(
2102
+ normalizedDynamicRequireRoot,
2103
+ message: `"${normalizedId}" contains dynamic require statements but it is not within the current dynamicRequireRoot "${normalizedDynamicRequireRoot}". You should set dynamicRequireRoot to "${path.dirname(
2104
2104
  normalizedId
2105
2105
  )}" or one of its parent directories.`
2106
2106
  },
package/dist/es/index.js CHANGED
@@ -7,7 +7,7 @@ import { walk } from 'estree-walker';
7
7
  import MagicString from 'magic-string';
8
8
  import isReference from 'is-reference';
9
9
 
10
- var version = "25.0.0";
10
+ var version = "25.0.1";
11
11
  var peerDependencies = {
12
12
  rollup: "^2.68.0||^3.0.0"
13
13
  };
@@ -2088,15 +2088,15 @@ function commonjs(options = {}) {
2088
2088
  !isEsModule && (dynamicRequireModules.has(normalizedId) || strictRequiresFilter(id));
2089
2089
 
2090
2090
  const checkDynamicRequire = (position) => {
2091
- const normalizedRequireRoot = normalizePathSlashes(dynamicRequireRoot);
2091
+ const normalizedDynamicRequireRoot = normalizePathSlashes(dynamicRequireRoot);
2092
2092
 
2093
- if (normalizedId.indexOf(normalizedRequireRoot) !== 0) {
2093
+ if (normalizedId.indexOf(normalizedDynamicRequireRoot) !== 0) {
2094
2094
  this.error(
2095
2095
  {
2096
2096
  code: 'DYNAMIC_REQUIRE_OUTSIDE_ROOT',
2097
2097
  normalizedId,
2098
- dynamicRequireRoot,
2099
- message: `"${normalizedId}" contains dynamic require statements but it is not within the current dynamicRequireRoot "${normalizedRequireRoot}". You should set dynamicRequireRoot to "${dirname(
2098
+ normalizedDynamicRequireRoot,
2099
+ message: `"${normalizedId}" contains dynamic require statements but it is not within the current dynamicRequireRoot "${normalizedDynamicRequireRoot}". You should set dynamicRequireRoot to "${dirname(
2100
2100
  normalizedId
2101
2101
  )}" or one of its parent directories.`
2102
2102
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/plugin-commonjs",
3
- "version": "25.0.0",
3
+ "version": "25.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },