vite-node 2.2.0-beta.2 → 3.0.0-beta.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/cli.cjs CHANGED
@@ -21,7 +21,7 @@ require('es-module-lexer');
21
21
  require('./constants.cjs');
22
22
  require('node:events');
23
23
 
24
- var version = "2.2.0-beta.2";
24
+ var version = "3.0.0-beta.1";
25
25
 
26
26
  const cli = cac("vite-node");
27
27
  cli.option("-r, --root <path>", "Use specified root directory").option("-c, --config <path>", "Use specified config file").option("-m, --mode <mode>", "Set env mode").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--script", "Use vite-node as a script runner").option("--options <options>", "Use specified Vite server options").option("-v, --version", "Output the version number").option("-h, --help", "Display help for command");
package/dist/cli.mjs CHANGED
@@ -19,7 +19,7 @@ import 'es-module-lexer';
19
19
  import './constants.mjs';
20
20
  import 'node:events';
21
21
 
22
- var version = "2.2.0-beta.2";
22
+ var version = "3.0.0-beta.1";
23
23
 
24
24
  const cli = cac("vite-node");
25
25
  cli.option("-r, --root <path>", "Use specified root directory").option("-c, --config <path>", "Use specified config file").option("-m, --mode <mode>", "Set env mode").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--script", "Use vite-node as a script runner").option("--options <options>", "Use specified Vite server options").option("-v, --version", "Output the version number").option("-h, --help", "Display help for command");
package/dist/server.cjs CHANGED
@@ -390,6 +390,7 @@ class ViteNodeServer {
390
390
  }
391
391
  getSourceMap(source) {
392
392
  var _a, _b;
393
+ source = utils.normalizeModuleId(source);
393
394
  const fetchResult = (_a = this.fetchCache.get(source)) == null ? void 0 : _a.result;
394
395
  if (fetchResult == null ? void 0 : fetchResult.map) {
395
396
  return fetchResult.map;
package/dist/server.mjs CHANGED
@@ -369,6 +369,7 @@ class ViteNodeServer {
369
369
  }
370
370
  getSourceMap(source) {
371
371
  var _a, _b;
372
+ source = normalizeModuleId(source);
372
373
  const fetchResult = (_a = this.fetchCache.get(source)) == null ? void 0 : _a.result;
373
374
  if (fetchResult == null ? void 0 : fetchResult.map) {
374
375
  return fetchResult.map;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-node",
3
3
  "type": "module",
4
- "version": "2.2.0-beta.2",
4
+ "version": "3.0.0-beta.1",
5
5
  "description": "Vite as Node.js runtime",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -74,14 +74,14 @@
74
74
  "dist"
75
75
  ],
76
76
  "engines": {
77
- "node": "^18.0.0 || >=20.0.0"
77
+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
78
78
  },
79
79
  "dependencies": {
80
80
  "cac": "^6.7.14",
81
81
  "debug": "^4.3.7",
82
82
  "es-module-lexer": "^1.5.4",
83
83
  "pathe": "^1.1.2",
84
- "vite": "^5.0.0"
84
+ "vite": "^5.0.0 || ^6.0.0"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@jridgewell/trace-mapping": "^0.3.25",