vite-node 0.27.2 → 0.27.3
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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/client.cjs +4 -2
- package/dist/client.mjs +4 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -25,7 +25,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
25
25
|
var cac__default = /*#__PURE__*/_interopDefaultLegacy(cac);
|
|
26
26
|
var c__default = /*#__PURE__*/_interopDefaultLegacy(c);
|
|
27
27
|
|
|
28
|
-
var version = "0.27.
|
|
28
|
+
var version = "0.27.3";
|
|
29
29
|
|
|
30
30
|
const cli = cac__default["default"]("vite-node");
|
|
31
31
|
cli.version(version).option("-r, --root <path>", "Use specified root directory").option("-c, --config <path>", "Use specified config file").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--options <options>", "Use specified Vite server options").help();
|
package/dist/cli.mjs
CHANGED
|
@@ -18,7 +18,7 @@ import 'node:path';
|
|
|
18
18
|
import 'node:vm';
|
|
19
19
|
import 'node:events';
|
|
20
20
|
|
|
21
|
-
var version = "0.27.
|
|
21
|
+
var version = "0.27.3";
|
|
22
22
|
|
|
23
23
|
const cli = cac("vite-node");
|
|
24
24
|
cli.version(version).option("-r, --root <path>", "Use specified root directory").option("-c, --config <path>", "Use specified config file").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--options <options>", "Use specified Vite server options").help();
|
package/dist/client.cjs
CHANGED
|
@@ -188,11 +188,13 @@ class ViteNodeRunner {
|
|
|
188
188
|
return !utils.isInternalRequest(id) && !mlly.isNodeBuiltin(id);
|
|
189
189
|
}
|
|
190
190
|
async _resolveUrl(id, importee) {
|
|
191
|
-
if (!this.shouldResolveId(id))
|
|
192
|
-
return [id, id];
|
|
193
191
|
if (importee && id.startsWith(utils.VALID_ID_PREFIX))
|
|
194
192
|
importee = void 0;
|
|
195
193
|
id = utils.normalizeRequestId(id, this.options.base);
|
|
194
|
+
if (!id.startsWith("/") && !id.startsWith("./") && !id.startsWith("../"))
|
|
195
|
+
importee = void 0;
|
|
196
|
+
if (!this.shouldResolveId(id))
|
|
197
|
+
return [id, id];
|
|
196
198
|
const { path, exists } = utils.toFilePath(id, this.root);
|
|
197
199
|
if (!this.options.resolveId || exists)
|
|
198
200
|
return [id, path];
|
package/dist/client.mjs
CHANGED
|
@@ -161,11 +161,13 @@ class ViteNodeRunner {
|
|
|
161
161
|
return !isInternalRequest(id) && !isNodeBuiltin(id);
|
|
162
162
|
}
|
|
163
163
|
async _resolveUrl(id, importee) {
|
|
164
|
-
if (!this.shouldResolveId(id))
|
|
165
|
-
return [id, id];
|
|
166
164
|
if (importee && id.startsWith(VALID_ID_PREFIX))
|
|
167
165
|
importee = void 0;
|
|
168
166
|
id = normalizeRequestId(id, this.options.base);
|
|
167
|
+
if (!id.startsWith("/") && !id.startsWith("./") && !id.startsWith("../"))
|
|
168
|
+
importee = void 0;
|
|
169
|
+
if (!this.shouldResolveId(id))
|
|
170
|
+
return [id, id];
|
|
169
171
|
const { path, exists } = toFilePath(id, this.root);
|
|
170
172
|
if (!this.options.resolveId || exists)
|
|
171
173
|
return [id, path];
|