@rollup/plugin-node-resolve 13.2.1 → 13.2.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/CHANGELOG.md +10 -0
- package/dist/cjs/index.js +9 -4
- package/dist/es/index.js +9 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# @rollup/plugin-node-resolve ChangeLog
|
2
2
|
|
3
|
+
## v13.2.2
|
4
|
+
|
5
|
+
_2022-05-02_
|
6
|
+
|
7
|
+
### Bugfixes
|
8
|
+
|
9
|
+
- fix: Respect if other plugins resolve the resolution to a different id (#1181)
|
10
|
+
- fix: Revert respect if other plugins resolve the resolution to a different id (ae59ceb)
|
11
|
+
- fix: Respect if other plugins resolve the resolution to a different id (f8d4c44)
|
12
|
+
|
3
13
|
## v13.2.1
|
4
14
|
|
5
15
|
_2022-04-15_
|
package/dist/cjs/index.js
CHANGED
@@ -21,7 +21,7 @@ var isModule__default = /*#__PURE__*/_interopDefaultLegacy(isModule);
|
|
21
21
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
22
22
|
var resolve__default = /*#__PURE__*/_interopDefaultLegacy(resolve);
|
23
23
|
|
24
|
-
var version = "13.2.
|
24
|
+
var version = "13.2.2";
|
25
25
|
|
26
26
|
util.promisify(fs__default["default"].access);
|
27
27
|
const readFile$1 = util.promisify(fs__default["default"].readFile);
|
@@ -1151,14 +1151,14 @@ function nodeResolve(opts = {}) {
|
|
1151
1151
|
|
1152
1152
|
version,
|
1153
1153
|
|
1154
|
-
buildStart(
|
1155
|
-
rollupOptions =
|
1154
|
+
buildStart(buildOptions) {
|
1155
|
+
rollupOptions = buildOptions;
|
1156
1156
|
|
1157
1157
|
for (const warning of warnings) {
|
1158
1158
|
this.warn(warning);
|
1159
1159
|
}
|
1160
1160
|
|
1161
|
-
({ preserveSymlinks } =
|
1161
|
+
({ preserveSymlinks } = buildOptions);
|
1162
1162
|
},
|
1163
1163
|
|
1164
1164
|
generateBundle() {
|
@@ -1190,6 +1190,11 @@ function nodeResolve(opts = {}) {
|
|
1190
1190
|
if (resolvedResolved.external) {
|
1191
1191
|
return false;
|
1192
1192
|
}
|
1193
|
+
// Allow other plugins to take over resolution. Rollup core will not
|
1194
|
+
// change the id if it corresponds to an existing file
|
1195
|
+
if (resolvedResolved.id !== resolved.id) {
|
1196
|
+
return resolvedResolved;
|
1197
|
+
}
|
1193
1198
|
// Pass on meta information added by other plugins
|
1194
1199
|
return { ...resolved, meta: resolvedResolved.meta };
|
1195
1200
|
}
|
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 = "13.2.
|
11
|
+
var version = "13.2.2";
|
12
12
|
|
13
13
|
promisify(fs.access);
|
14
14
|
const readFile$1 = promisify(fs.readFile);
|
@@ -1138,14 +1138,14 @@ function nodeResolve(opts = {}) {
|
|
1138
1138
|
|
1139
1139
|
version,
|
1140
1140
|
|
1141
|
-
buildStart(
|
1142
|
-
rollupOptions =
|
1141
|
+
buildStart(buildOptions) {
|
1142
|
+
rollupOptions = buildOptions;
|
1143
1143
|
|
1144
1144
|
for (const warning of warnings) {
|
1145
1145
|
this.warn(warning);
|
1146
1146
|
}
|
1147
1147
|
|
1148
|
-
({ preserveSymlinks } =
|
1148
|
+
({ preserveSymlinks } = buildOptions);
|
1149
1149
|
},
|
1150
1150
|
|
1151
1151
|
generateBundle() {
|
@@ -1177,6 +1177,11 @@ function nodeResolve(opts = {}) {
|
|
1177
1177
|
if (resolvedResolved.external) {
|
1178
1178
|
return false;
|
1179
1179
|
}
|
1180
|
+
// Allow other plugins to take over resolution. Rollup core will not
|
1181
|
+
// change the id if it corresponds to an existing file
|
1182
|
+
if (resolvedResolved.id !== resolved.id) {
|
1183
|
+
return resolvedResolved;
|
1184
|
+
}
|
1180
1185
|
// Pass on meta information added by other plugins
|
1181
1186
|
return { ...resolved, meta: resolvedResolved.meta };
|
1182
1187
|
}
|