@rollup/plugin-node-resolve 13.3.0 → 14.0.0
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 +43 -30
- package/dist/es/index.js +43 -30
- package/package.json +4 -4
- package/CHANGELOG.md +0 -552
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 = "
|
24
|
+
var version = "14.0.0";
|
25
25
|
|
26
26
|
util.promisify(fs__default["default"].access);
|
27
27
|
const readFile$1 = util.promisify(fs__default["default"].readFile);
|
@@ -991,7 +991,7 @@ function nodeResolve(opts = {}) {
|
|
991
991
|
const browserMapCache = new Map();
|
992
992
|
let preserveSymlinks;
|
993
993
|
|
994
|
-
const
|
994
|
+
const resolveLikeNode = async (context, importee, importer, custom) => {
|
995
995
|
// strip query params from import
|
996
996
|
const [importPath, params] = importee.split('?');
|
997
997
|
const importSuffix = `${params ? `?${params}` : ''}`;
|
@@ -1166,39 +1166,52 @@ function nodeResolve(opts = {}) {
|
|
1166
1166
|
isDirCached.clear();
|
1167
1167
|
},
|
1168
1168
|
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1169
|
+
resolveId: {
|
1170
|
+
order: 'post',
|
1171
|
+
async handler(importee, importer, resolveOptions) {
|
1172
|
+
if (importee === ES6_BROWSER_EMPTY) {
|
1173
|
+
return importee;
|
1174
|
+
}
|
1175
|
+
// ignore IDs with null character, these belong to other plugins
|
1176
|
+
if (/\0/.test(importee)) return null;
|
1175
1177
|
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1178
|
+
const { custom = {} } = resolveOptions;
|
1179
|
+
const { 'node-resolve': { resolved: alreadyResolved } = {} } = custom;
|
1180
|
+
if (alreadyResolved) {
|
1181
|
+
return alreadyResolved;
|
1182
|
+
}
|
1179
1183
|
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
//
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1184
|
+
if (/\0/.test(importer)) {
|
1185
|
+
importer = undefined;
|
1186
|
+
}
|
1187
|
+
|
1188
|
+
const resolved = await resolveLikeNode(this, importee, importer, custom);
|
1189
|
+
if (resolved) {
|
1190
|
+
// This way, plugins may attach additional meta information to the
|
1191
|
+
// resolved id or make it external. We do not skip node-resolve here
|
1192
|
+
// because another plugin might again use `this.resolve` in its
|
1193
|
+
// `resolveId` hook, in which case we want to add the correct
|
1194
|
+
// `moduleSideEffects` information.
|
1195
|
+
const resolvedResolved = await this.resolve(resolved.id, importer, {
|
1196
|
+
...resolveOptions,
|
1197
|
+
custom: { ...custom, 'node-resolve': { resolved } }
|
1198
|
+
});
|
1199
|
+
if (resolvedResolved) {
|
1200
|
+
// Handle plugins that manually make the result external
|
1201
|
+
if (resolvedResolved.external) {
|
1202
|
+
return false;
|
1203
|
+
}
|
1204
|
+
// Allow other plugins to take over resolution. Rollup core will not
|
1205
|
+
// change the id if it corresponds to an existing file
|
1206
|
+
if (resolvedResolved.id !== resolved.id) {
|
1207
|
+
return resolvedResolved;
|
1208
|
+
}
|
1209
|
+
// Pass on meta information added by other plugins
|
1210
|
+
return { ...resolved, meta: resolvedResolved.meta };
|
1196
1211
|
}
|
1197
|
-
// Pass on meta information added by other plugins
|
1198
|
-
return { ...resolved, meta: resolvedResolved.meta };
|
1199
1212
|
}
|
1213
|
+
return resolved;
|
1200
1214
|
}
|
1201
|
-
return resolved;
|
1202
1215
|
},
|
1203
1216
|
|
1204
1217
|
load(importee) {
|
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 = "
|
11
|
+
var version = "14.0.0";
|
12
12
|
|
13
13
|
promisify(fs.access);
|
14
14
|
const readFile$1 = promisify(fs.readFile);
|
@@ -978,7 +978,7 @@ function nodeResolve(opts = {}) {
|
|
978
978
|
const browserMapCache = new Map();
|
979
979
|
let preserveSymlinks;
|
980
980
|
|
981
|
-
const
|
981
|
+
const resolveLikeNode = async (context, importee, importer, custom) => {
|
982
982
|
// strip query params from import
|
983
983
|
const [importPath, params] = importee.split('?');
|
984
984
|
const importSuffix = `${params ? `?${params}` : ''}`;
|
@@ -1153,39 +1153,52 @@ function nodeResolve(opts = {}) {
|
|
1153
1153
|
isDirCached.clear();
|
1154
1154
|
},
|
1155
1155
|
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1156
|
+
resolveId: {
|
1157
|
+
order: 'post',
|
1158
|
+
async handler(importee, importer, resolveOptions) {
|
1159
|
+
if (importee === ES6_BROWSER_EMPTY) {
|
1160
|
+
return importee;
|
1161
|
+
}
|
1162
|
+
// ignore IDs with null character, these belong to other plugins
|
1163
|
+
if (/\0/.test(importee)) return null;
|
1162
1164
|
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1165
|
+
const { custom = {} } = resolveOptions;
|
1166
|
+
const { 'node-resolve': { resolved: alreadyResolved } = {} } = custom;
|
1167
|
+
if (alreadyResolved) {
|
1168
|
+
return alreadyResolved;
|
1169
|
+
}
|
1166
1170
|
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1175
|
-
//
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1171
|
+
if (/\0/.test(importer)) {
|
1172
|
+
importer = undefined;
|
1173
|
+
}
|
1174
|
+
|
1175
|
+
const resolved = await resolveLikeNode(this, importee, importer, custom);
|
1176
|
+
if (resolved) {
|
1177
|
+
// This way, plugins may attach additional meta information to the
|
1178
|
+
// resolved id or make it external. We do not skip node-resolve here
|
1179
|
+
// because another plugin might again use `this.resolve` in its
|
1180
|
+
// `resolveId` hook, in which case we want to add the correct
|
1181
|
+
// `moduleSideEffects` information.
|
1182
|
+
const resolvedResolved = await this.resolve(resolved.id, importer, {
|
1183
|
+
...resolveOptions,
|
1184
|
+
custom: { ...custom, 'node-resolve': { resolved } }
|
1185
|
+
});
|
1186
|
+
if (resolvedResolved) {
|
1187
|
+
// Handle plugins that manually make the result external
|
1188
|
+
if (resolvedResolved.external) {
|
1189
|
+
return false;
|
1190
|
+
}
|
1191
|
+
// Allow other plugins to take over resolution. Rollup core will not
|
1192
|
+
// change the id if it corresponds to an existing file
|
1193
|
+
if (resolvedResolved.id !== resolved.id) {
|
1194
|
+
return resolvedResolved;
|
1195
|
+
}
|
1196
|
+
// Pass on meta information added by other plugins
|
1197
|
+
return { ...resolved, meta: resolvedResolved.meta };
|
1183
1198
|
}
|
1184
|
-
// Pass on meta information added by other plugins
|
1185
|
-
return { ...resolved, meta: resolvedResolved.meta };
|
1186
1199
|
}
|
1200
|
+
return resolved;
|
1187
1201
|
}
|
1188
|
-
return resolved;
|
1189
1202
|
},
|
1190
1203
|
|
1191
1204
|
load(importee) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rollup/plugin-node-resolve",
|
3
|
-
"version": "
|
3
|
+
"version": "14.0.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"modules"
|
53
53
|
],
|
54
54
|
"peerDependencies": {
|
55
|
-
"rollup": "^2.
|
55
|
+
"rollup": "^2.78.0"
|
56
56
|
},
|
57
57
|
"dependencies": {
|
58
58
|
"@rollup/pluginutils": "^3.1.0",
|
@@ -66,10 +66,10 @@
|
|
66
66
|
"@babel/core": "^7.10.5",
|
67
67
|
"@babel/plugin-transform-typescript": "^7.10.5",
|
68
68
|
"@rollup/plugin-babel": "^5.1.0",
|
69
|
-
"@rollup/plugin-commonjs": "^
|
69
|
+
"@rollup/plugin-commonjs": "^22.0.2",
|
70
70
|
"@rollup/plugin-json": "^4.1.0",
|
71
71
|
"es5-ext": "^0.10.53",
|
72
|
-
"rollup": "^2.
|
72
|
+
"rollup": "^2.78.1",
|
73
73
|
"source-map": "^0.7.3",
|
74
74
|
"string-capitalize": "^1.0.1"
|
75
75
|
},
|
package/CHANGELOG.md
DELETED
@@ -1,552 +0,0 @@
|
|
1
|
-
# @rollup/plugin-node-resolve ChangeLog
|
2
|
-
|
3
|
-
## v13.3.0
|
4
|
-
|
5
|
-
_2022-05-02_
|
6
|
-
|
7
|
-
### Features
|
8
|
-
|
9
|
-
- feat: support `node:` protocol (#1124)
|
10
|
-
|
11
|
-
## v13.2.2
|
12
|
-
|
13
|
-
_2022-05-02_
|
14
|
-
|
15
|
-
### Bugfixes
|
16
|
-
|
17
|
-
- fix: Respect if other plugins resolve the resolution to a different id (#1181)
|
18
|
-
- fix: Revert respect if other plugins resolve the resolution to a different id (ae59ceb)
|
19
|
-
- fix: Respect if other plugins resolve the resolution to a different id (f8d4c44)
|
20
|
-
|
21
|
-
## v13.2.1
|
22
|
-
|
23
|
-
_2022-04-15_
|
24
|
-
|
25
|
-
### Bugfixes
|
26
|
-
|
27
|
-
- fix: update side effects logic to be deep when glob doesn’t contain `/` (#1148)
|
28
|
-
|
29
|
-
## v13.2.0
|
30
|
-
|
31
|
-
_2022-04-11_
|
32
|
-
|
33
|
-
### Features
|
34
|
-
|
35
|
-
- feat: Add the ability to pass a function into resolveOnly (#1152)
|
36
|
-
|
37
|
-
## v13.1.3
|
38
|
-
|
39
|
-
_2022-01-05_
|
40
|
-
|
41
|
-
### Bugfixes
|
42
|
-
|
43
|
-
- fix: use correct version when published (#1063)
|
44
|
-
|
45
|
-
## v13.1.2
|
46
|
-
|
47
|
-
_2021-12-31_
|
48
|
-
|
49
|
-
### Bugfixes
|
50
|
-
|
51
|
-
- fix: forward meta-information from other plugins (#1062)
|
52
|
-
|
53
|
-
## v13.1.1
|
54
|
-
|
55
|
-
_2021-12-13_
|
56
|
-
|
57
|
-
### Updates
|
58
|
-
|
59
|
-
- test: add tests for mixing custom `exportConditions` with `browser: true` (#1043)
|
60
|
-
|
61
|
-
## v13.1.0
|
62
|
-
|
63
|
-
_2021-12-13_
|
64
|
-
|
65
|
-
### Features
|
66
|
-
|
67
|
-
- feat: expose plugin version (#1050)
|
68
|
-
|
69
|
-
## v13.0.6
|
70
|
-
|
71
|
-
_2021-10-19_
|
72
|
-
|
73
|
-
### Bugfixes
|
74
|
-
|
75
|
-
- fix: pass on isEntry flag (#1016)
|
76
|
-
|
77
|
-
## v13.0.5
|
78
|
-
|
79
|
-
_2021-09-21_
|
80
|
-
|
81
|
-
### Updates
|
82
|
-
|
83
|
-
- docs: fix readme heading depth (#999)
|
84
|
-
|
85
|
-
## v13.0.4
|
86
|
-
|
87
|
-
_2021-07-24_
|
88
|
-
|
89
|
-
### Bugfixes
|
90
|
-
|
91
|
-
- fix: Fix bug where JS import was converted to a TS import, resulting in an error when using export maps (#921)
|
92
|
-
|
93
|
-
## v13.0.3
|
94
|
-
|
95
|
-
_2021-07-24_
|
96
|
-
|
97
|
-
### Bugfixes
|
98
|
-
|
99
|
-
- fix: handle browser-mapped paths correctly in nested contexts (#920)
|
100
|
-
|
101
|
-
## v13.0.2
|
102
|
-
|
103
|
-
_2021-07-15_
|
104
|
-
|
105
|
-
### Bugfixes
|
106
|
-
|
107
|
-
- fix: handle "package.json" being in path (#927)
|
108
|
-
|
109
|
-
## v13.0.1
|
110
|
-
|
111
|
-
_2021-07-15_
|
112
|
-
|
113
|
-
### Updates
|
114
|
-
|
115
|
-
- docs: Document how to get Node.js exports resolution (#884)
|
116
|
-
|
117
|
-
## v13.0.0
|
118
|
-
|
119
|
-
_2021-05-04_
|
120
|
-
|
121
|
-
### Breaking Changes
|
122
|
-
|
123
|
-
- fix!: mark module as external if resolved module is external (#799)
|
124
|
-
|
125
|
-
### Features
|
126
|
-
|
127
|
-
- feat: Follow up to #843, refining exports and browser field interaction (#866)
|
128
|
-
|
129
|
-
## v12.0.0
|
130
|
-
|
131
|
-
_2021-05-04_
|
132
|
-
|
133
|
-
### Breaking Changes
|
134
|
-
|
135
|
-
- fix!: mark module as external if resolved module is external (#799)
|
136
|
-
|
137
|
-
### Features
|
138
|
-
|
139
|
-
- feat: Follow up to #843, refining exports and browser field interaction (#866)
|
140
|
-
|
141
|
-
## v11.2.1
|
142
|
-
|
143
|
-
_2021-03-26_
|
144
|
-
|
145
|
-
### Bugfixes
|
146
|
-
|
147
|
-
- fix: fs.exists is incorrectly promisified (#835)
|
148
|
-
|
149
|
-
## v11.2.0
|
150
|
-
|
151
|
-
_2021-02-14_
|
152
|
-
|
153
|
-
### Features
|
154
|
-
|
155
|
-
- feat: add `ignoreSideEffectsForRoot` option (#694)
|
156
|
-
|
157
|
-
### Updates
|
158
|
-
|
159
|
-
- chore: mark `url` as an external and throw on warning (#783)
|
160
|
-
- docs: clearer "Resolving Built-Ins" doc (#782)
|
161
|
-
|
162
|
-
## v11.1.1
|
163
|
-
|
164
|
-
_2021-01-29_
|
165
|
-
|
166
|
-
### Bugfixes
|
167
|
-
|
168
|
-
- fix: only log last resolve error (#750)
|
169
|
-
|
170
|
-
### Updates
|
171
|
-
|
172
|
-
- docs: add clarification on the order of package entrypoints (#768)
|
173
|
-
|
174
|
-
## v11.1.0
|
175
|
-
|
176
|
-
_2021-01-15_
|
177
|
-
|
178
|
-
### Features
|
179
|
-
|
180
|
-
- feat: support pkg imports and export array (#693)
|
181
|
-
|
182
|
-
## v11.0.1
|
183
|
-
|
184
|
-
_2020-12-14_
|
185
|
-
|
186
|
-
### Bugfixes
|
187
|
-
|
188
|
-
- fix: export map specificity (#675)
|
189
|
-
- fix: add missing type import (#668)
|
190
|
-
|
191
|
-
### Updates
|
192
|
-
|
193
|
-
- docs: corrected word "yse" to "use" (#723)
|
194
|
-
|
195
|
-
## v11.0.0
|
196
|
-
|
197
|
-
_2020-11-30_
|
198
|
-
|
199
|
-
### Breaking Changes
|
200
|
-
|
201
|
-
- refactor!: simplify builtins and remove `customResolveOptions` (#656)
|
202
|
-
- feat!: Mark built-ins as external (#627)
|
203
|
-
- feat!: support package entry points (#540)
|
204
|
-
|
205
|
-
### Bugfixes
|
206
|
-
|
207
|
-
- fix: refactor handling builtins, do not log warning if no local version (#637)
|
208
|
-
|
209
|
-
### Updates
|
210
|
-
|
211
|
-
- docs: fix import statements in examples in README.md (#646)
|
212
|
-
|
213
|
-
## v10.0.0
|
214
|
-
|
215
|
-
_2020-10-27_
|
216
|
-
|
217
|
-
### Breaking Changes
|
218
|
-
|
219
|
-
- fix!: resolve hash in path (#588)
|
220
|
-
|
221
|
-
### Bugfixes
|
222
|
-
|
223
|
-
- fix: do not ignore exceptions (#564)
|
224
|
-
|
225
|
-
## v9.0.0
|
226
|
-
|
227
|
-
_2020-08-13_
|
228
|
-
|
229
|
-
### Breaking Changes
|
230
|
-
|
231
|
-
- chore: update dependencies (e632469)
|
232
|
-
|
233
|
-
### Updates
|
234
|
-
|
235
|
-
- refactor: remove deep-freeze from dependencies (#529)
|
236
|
-
- chore: clean up changelog (84dfddb)
|
237
|
-
|
238
|
-
## v8.4.0
|
239
|
-
|
240
|
-
_2020-07-12_
|
241
|
-
|
242
|
-
### Features
|
243
|
-
|
244
|
-
- feat: preserve search params and hashes (#487)
|
245
|
-
- feat: support .js imports in TypeScript (#480)
|
246
|
-
|
247
|
-
### Updates
|
248
|
-
|
249
|
-
- docs: fix named export use in readme (#456)
|
250
|
-
- docs: correct mainFields valid values (#469)
|
251
|
-
|
252
|
-
## v8.1.0
|
253
|
-
|
254
|
-
_2020-06-22_
|
255
|
-
|
256
|
-
### Features
|
257
|
-
|
258
|
-
- feat: add native node es modules support (#413)
|
259
|
-
|
260
|
-
## v8.0.1
|
261
|
-
|
262
|
-
_2020-06-05_
|
263
|
-
|
264
|
-
### Bugfixes
|
265
|
-
|
266
|
-
- fix: handle nested entry modules with the resolveOnly option (#430)
|
267
|
-
|
268
|
-
## v8.0.0
|
269
|
-
|
270
|
-
_2020-05-20_
|
271
|
-
|
272
|
-
### Breaking Changes
|
273
|
-
|
274
|
-
- feat: Add default export (#361)
|
275
|
-
- feat: export defaults (#301)
|
276
|
-
|
277
|
-
### Bugfixes
|
278
|
-
|
279
|
-
- fix: resolve local files if `resolveOption` is set (#337)
|
280
|
-
|
281
|
-
### Updates
|
282
|
-
|
283
|
-
- docs: correct misspelling (#343)
|
284
|
-
|
285
|
-
## v7.1.3
|
286
|
-
|
287
|
-
_2020-04-12_
|
288
|
-
|
289
|
-
### Bugfixes
|
290
|
-
|
291
|
-
- fix: resolve symlinked entry point properly (#291)
|
292
|
-
|
293
|
-
## v7.1.2
|
294
|
-
|
295
|
-
_2020-04-12_
|
296
|
-
|
297
|
-
### Updates
|
298
|
-
|
299
|
-
- docs: fix url (#289)
|
300
|
-
|
301
|
-
## v7.1.1
|
302
|
-
|
303
|
-
_2020-02-03_
|
304
|
-
|
305
|
-
### Bugfixes
|
306
|
-
|
307
|
-
- fix: main fields regression (#196)
|
308
|
-
|
309
|
-
## v7.1.0
|
310
|
-
|
311
|
-
_2020-02-01_
|
312
|
-
|
313
|
-
### Updates
|
314
|
-
|
315
|
-
- refactor: clean codebase and fix external warnings (#155)
|
316
|
-
|
317
|
-
## v7.0.0
|
318
|
-
|
319
|
-
_2020-01-07_
|
320
|
-
|
321
|
-
### Breaking Changes
|
322
|
-
|
323
|
-
- feat: dedupe by package name (#99)
|
324
|
-
|
325
|
-
## v6.1.0
|
326
|
-
|
327
|
-
_2020-01-04_
|
328
|
-
|
329
|
-
### Bugfixes
|
330
|
-
|
331
|
-
- fix: allow deduplicating custom module dirs (#101)
|
332
|
-
|
333
|
-
### Features
|
334
|
-
|
335
|
-
- feat: add rootDir option (#98)
|
336
|
-
|
337
|
-
### Updates
|
338
|
-
|
339
|
-
- docs: improve doc related to mainFields (#138)
|
340
|
-
|
341
|
-
## 6.0.0
|
342
|
-
|
343
|
-
_2019-11-25_
|
344
|
-
|
345
|
-
- **Breaking:** Minimum compatible Rollup version is 1.20.0
|
346
|
-
- **Breaking:** Minimum supported Node version is 8.0.0
|
347
|
-
- Published as @rollup/plugin-node-resolve
|
348
|
-
|
349
|
-
## 5.2.1 (unreleased)
|
350
|
-
|
351
|
-
- add missing MIT license file ([#233](https://github.com/rollup/rollup-plugin-node-resolve/pull/233) by @kenjiO)
|
352
|
-
- Fix incorrect example of config ([#239](https://github.com/rollup/rollup-plugin-node-resolve/pull/240) by @myshov)
|
353
|
-
- Fix typo in readme ([#240](https://github.com/rollup/rollup-plugin-node-resolve/pull/240) by @LinusU)
|
354
|
-
|
355
|
-
## 5.2.0 (2019-06-29)
|
356
|
-
|
357
|
-
- dedupe accepts a function ([#225](https://github.com/rollup/rollup-plugin-node-resolve/pull/225) by @manucorporat)
|
358
|
-
|
359
|
-
## 5.1.1 (2019-06-29)
|
360
|
-
|
361
|
-
- Move Rollup version check to buildStart hook to avoid issues ([#232](https://github.com/rollup/rollup-plugin-node-resolve/pull/232) by @lukastaegert)
|
362
|
-
|
363
|
-
## 5.1.0 (2019-06-22)
|
364
|
-
|
365
|
-
- Fix path fragment inputs ([#229](https://github.com/rollup/rollup-plugin-node-resolve/pull/229) by @bterlson)
|
366
|
-
|
367
|
-
## 5.0.4 (2019-06-22)
|
368
|
-
|
369
|
-
- Treat sideEffects array as inclusion list ([#227](https://github.com/rollup/rollup-plugin-node-resolve/pull/227) by @mikeharder)
|
370
|
-
|
371
|
-
## 5.0.3 (2019-06-16)
|
372
|
-
|
373
|
-
- Make empty.js a virtual module ([#224](https://github.com/rollup/rollup-plugin-node-resolve/pull/224) by @manucorporat)
|
374
|
-
|
375
|
-
## 5.0.2 (2019-06-13)
|
376
|
-
|
377
|
-
- Support resolve 1.11.1, add built-in test ([#223](https://github.com/rollup/rollup-plugin-node-resolve/pull/223) by @bterlson)
|
378
|
-
|
379
|
-
## 5.0.1 (2019-05-31)
|
380
|
-
|
381
|
-
- Update to resolve@1.11.0 for better performance ([#220](https://github.com/rollup/rollup-plugin-node-resolve/pull/220) by @keithamus)
|
382
|
-
|
383
|
-
## 5.0.0 (2019-05-15)
|
384
|
-
|
385
|
-
- Replace bublé with babel, update dependencies ([#216](https://github.com/rollup/rollup-plugin-node-resolve/pull/216) by @mecurc)
|
386
|
-
- Handle module side-effects ([#219](https://github.com/rollup/rollup-plugin-node-resolve/pull/219) by @lukastaegert)
|
387
|
-
|
388
|
-
### Breaking Changes
|
389
|
-
|
390
|
-
- Requires at least rollup@1.11.0 to work (v1.12.0 for module side-effects to be respected)
|
391
|
-
- If used with rollup-plugin-commonjs, it should be at least v10.0.0
|
392
|
-
|
393
|
-
## 4.2.4 (2019-05-11)
|
394
|
-
|
395
|
-
- Add note on builtins to Readme ([#215](https://github.com/rollup/rollup-plugin-node-resolve/pull/215) by @keithamus)
|
396
|
-
- Add issue templates ([#217](https://github.com/rollup/rollup-plugin-node-resolve/pull/217) by @mecurc)
|
397
|
-
- Improve performance by caching `isDir` ([#218](https://github.com/rollup/rollup-plugin-node-resolve/pull/218) by @keithamus)
|
398
|
-
|
399
|
-
## 4.2.3 (2019-04-11)
|
400
|
-
|
401
|
-
- Fix ordering of jsnext:main when using the jsnext option ([#209](https://github.com/rollup/rollup-plugin-node-resolve/pull/209) by @lukastaegert)
|
402
|
-
|
403
|
-
## 4.2.2 (2019-04-10)
|
404
|
-
|
405
|
-
- Fix TypeScript typings (rename and export Options interface) ([#206](https://github.com/rollup/rollup-plugin-node-resolve/pull/206) by @Kocal)
|
406
|
-
- Fix mainfields typing ([#207](https://github.com/rollup/rollup-plugin-node-resolve/pull/207) by @nicolashenry)
|
407
|
-
|
408
|
-
## 4.2.1 (2019-04-06)
|
409
|
-
|
410
|
-
- Respect setting the deprecated fields "module", "main", and "jsnext" ([#204](https://github.com/rollup/rollup-plugin-node-resolve/pull/204) by @nick-woodward)
|
411
|
-
|
412
|
-
## 4.2.0 (2019-04-06)
|
413
|
-
|
414
|
-
- Add new mainfields option ([#182](https://github.com/rollup/rollup-plugin-node-resolve/pull/182) by @keithamus)
|
415
|
-
- Added dedupe option to prevent bundling the same package multiple times ([#201](https://github.com/rollup/rollup-plugin-node-resolve/pull/182) by @sormy)
|
416
|
-
|
417
|
-
## 4.1.0 (2019-04-05)
|
418
|
-
|
419
|
-
- Add TypeScript typings ([#189](https://github.com/rollup/rollup-plugin-node-resolve/pull/189) by @NotWoods)
|
420
|
-
- Update dependencies ([#202](https://github.com/rollup/rollup-plugin-node-resolve/pull/202) by @lukastaegert)
|
421
|
-
|
422
|
-
## 4.0.1 (2019-02-22)
|
423
|
-
|
424
|
-
- Fix issue when external modules are specified in `package.browser` ([#143](https://github.com/rollup/rollup-plugin-node-resolve/pull/143) by @keithamus)
|
425
|
-
- Fix `package.browser` mapping issue when `false` is specified ([#183](https://github.com/rollup/rollup-plugin-node-resolve/pull/183) by @allex)
|
426
|
-
|
427
|
-
## 4.0.0 (2018-12-09)
|
428
|
-
|
429
|
-
This release will support rollup@1.0
|
430
|
-
|
431
|
-
### Features
|
432
|
-
|
433
|
-
- Resolve modules used to define manual chunks ([#185](https://github.com/rollup/rollup-plugin-node-resolve/pull/185) by @mcshaman)
|
434
|
-
- Update dependencies and plugin hook usage ([#187](https://github.com/rollup/rollup-plugin-node-resolve/pull/187) by @lukastaegert)
|
435
|
-
|
436
|
-
## 3.4.0 (2018-09-04)
|
437
|
-
|
438
|
-
This release now supports `.mjs` files by default
|
439
|
-
|
440
|
-
### Features
|
441
|
-
|
442
|
-
- feat: Support .mjs files by default (https://github.com/rollup/rollup-plugin-node-resolve/pull/151, by @leebyron)
|
443
|
-
|
444
|
-
## 3.3.0 (2018-03-17)
|
445
|
-
|
446
|
-
This release adds the `only` option
|
447
|
-
|
448
|
-
### New Features
|
449
|
-
|
450
|
-
- feat: add `only` option (#83; @arantes555)
|
451
|
-
|
452
|
-
### Docs
|
453
|
-
|
454
|
-
- docs: correct description of `jail` option (#120; @GeorgeTaveras1231)
|
455
|
-
|
456
|
-
## 3.2.0 (2018-03-07)
|
457
|
-
|
458
|
-
This release caches reading/statting of files, to improve speed.
|
459
|
-
|
460
|
-
### Performance Improvements
|
461
|
-
|
462
|
-
- perf: cache file stats/reads (#126; @keithamus)
|
463
|
-
|
464
|
-
## 3.0.4 (unreleased)
|
465
|
-
|
466
|
-
- Update lockfile [#137](https://github.com/rollup/rollup-plugin-node-resolve/issues/137)
|
467
|
-
- Update rollup dependency [#138](https://github.com/rollup/rollup-plugin-node-resolve/issues/138)
|
468
|
-
- Enable installation from Github [#142](https://github.com/rollup/rollup-plugin-node-resolve/issues/142)
|
469
|
-
|
470
|
-
## 3.0.3
|
471
|
-
|
472
|
-
- Fix [#130](https://github.com/rollup/rollup-plugin-node-resolve/issues/130) and [#131](https://github.com/rollup/rollup-plugin-node-resolve/issues/131)
|
473
|
-
|
474
|
-
## 3.0.2
|
475
|
-
|
476
|
-
- Ensure `pkg.browser` is an object if necessary ([#129](https://github.com/rollup/rollup-plugin-node-resolve/pull/129))
|
477
|
-
|
478
|
-
## 3.0.1
|
479
|
-
|
480
|
-
- Remove `browser-resolve` dependency ([#127](https://github.com/rollup/rollup-plugin-node-resolve/pull/127))
|
481
|
-
|
482
|
-
## 3.0.0
|
483
|
-
|
484
|
-
- [BREAKING] Remove `options.skip` ([#90](https://github.com/rollup/rollup-plugin-node-resolve/pull/90))
|
485
|
-
- Add `modulesOnly` option ([#96](https://github.com/rollup/rollup-plugin-node-resolve/pull/96))
|
486
|
-
|
487
|
-
## 2.1.1
|
488
|
-
|
489
|
-
- Prevent `jail` from breaking builds on Windows ([#93](https://github.com/rollup/rollup-plugin-node-resolve/issues/93))
|
490
|
-
|
491
|
-
## 2.1.0
|
492
|
-
|
493
|
-
- Add `jail` option ([#53](https://github.com/rollup/rollup-plugin-node-resolve/pull/53))
|
494
|
-
- Add `customResolveOptions` option ([#79](https://github.com/rollup/rollup-plugin-node-resolve/pull/79))
|
495
|
-
- Support symlinked packages ([#82](https://github.com/rollup/rollup-plugin-node-resolve/pull/82))
|
496
|
-
|
497
|
-
## 2.0.0
|
498
|
-
|
499
|
-
- Add support `module` field in package.json as an official alternative to jsnext
|
500
|
-
|
501
|
-
## 1.7.3
|
502
|
-
|
503
|
-
- Error messages are more descriptive ([#50](https://github.com/rollup/rollup-plugin-node-resolve/issues/50))
|
504
|
-
|
505
|
-
## 1.7.2
|
506
|
-
|
507
|
-
- Allow entry point paths beginning with ./
|
508
|
-
|
509
|
-
## 1.7.1
|
510
|
-
|
511
|
-
- Return a `name`
|
512
|
-
|
513
|
-
## 1.7.0
|
514
|
-
|
515
|
-
- Allow relative IDs to be external ([#32](https://github.com/rollup/rollup-plugin-node-resolve/pull/32))
|
516
|
-
|
517
|
-
## 1.6.0
|
518
|
-
|
519
|
-
- Skip IDs containing null character
|
520
|
-
|
521
|
-
## 1.5.0
|
522
|
-
|
523
|
-
- Prefer built-in options, but allow opting out ([#28](https://github.com/rollup/rollup-plugin-node-resolve/pull/28))
|
524
|
-
|
525
|
-
## 1.4.0
|
526
|
-
|
527
|
-
- Pass `options.extensions` through to `node-resolve`
|
528
|
-
|
529
|
-
## 1.3.0
|
530
|
-
|
531
|
-
- `skip: true` skips all packages that don't satisfy the `main` or `jsnext` options ([#16](https://github.com/rollup/rollup-plugin-node-resolve/pull/16))
|
532
|
-
|
533
|
-
## 1.2.1
|
534
|
-
|
535
|
-
- Support scoped packages in `skip` option ([#15](https://github.com/rollup/rollup-plugin-node-resolve/issues/15))
|
536
|
-
|
537
|
-
## 1.2.0
|
538
|
-
|
539
|
-
- Support `browser` field ([#8](https://github.com/rollup/rollup-plugin-node-resolve/issues/8))
|
540
|
-
- Get tests to pass on Windows
|
541
|
-
|
542
|
-
## 1.1.0
|
543
|
-
|
544
|
-
- Use node-resolve to handle various corner cases
|
545
|
-
|
546
|
-
## 1.0.0
|
547
|
-
|
548
|
-
- Add ES6 build, use Rollup 0.20.0
|
549
|
-
|
550
|
-
## 0.1.0
|
551
|
-
|
552
|
-
- First release
|