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