vite-node 0.31.3 → 0.31.4
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 +2 -2
- package/dist/cli.mjs +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -6,8 +6,8 @@ var vite = require('vite');
|
|
|
6
6
|
var server = require('./server.cjs');
|
|
7
7
|
var client = require('./client.cjs');
|
|
8
8
|
var utils = require('./utils.cjs');
|
|
9
|
-
var sourceMap = require('./source-map.cjs');
|
|
10
9
|
var hmr = require('./chunk-hmr.cjs');
|
|
10
|
+
var sourceMap = require('./source-map.cjs');
|
|
11
11
|
require('perf_hooks');
|
|
12
12
|
require('fs');
|
|
13
13
|
require('pathe');
|
|
@@ -24,7 +24,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
24
24
|
var cac__default = /*#__PURE__*/_interopDefaultLegacy(cac);
|
|
25
25
|
var c__default = /*#__PURE__*/_interopDefaultLegacy(c);
|
|
26
26
|
|
|
27
|
-
var version = "0.31.
|
|
27
|
+
var version = "0.31.4";
|
|
28
28
|
|
|
29
29
|
const cli = cac__default["default"]("vite-node");
|
|
30
30
|
cli.version(version).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").help();
|
package/dist/cli.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import 'node:path';
|
|
|
17
17
|
import 'node:vm';
|
|
18
18
|
import 'node:events';
|
|
19
19
|
|
|
20
|
-
var version = "0.31.
|
|
20
|
+
var version = "0.31.4";
|
|
21
21
|
|
|
22
22
|
const cli = cac("vite-node");
|
|
23
23
|
cli.version(version).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").help();
|
package/dist/server.cjs
CHANGED
|
@@ -124,7 +124,7 @@ function matchExternalizePattern(id, moduleDirectories, patterns) {
|
|
|
124
124
|
return true;
|
|
125
125
|
for (const ex of patterns) {
|
|
126
126
|
if (typeof ex === "string") {
|
|
127
|
-
if (moduleDirectories.some((dir) => id.includes(pathe.join(dir,
|
|
127
|
+
if (moduleDirectories.some((dir) => id.includes(pathe.join(dir, ex))))
|
|
128
128
|
return true;
|
|
129
129
|
} else {
|
|
130
130
|
if (ex.test(id))
|
package/dist/server.mjs
CHANGED
|
@@ -115,7 +115,7 @@ function matchExternalizePattern(id, moduleDirectories, patterns) {
|
|
|
115
115
|
return true;
|
|
116
116
|
for (const ex of patterns) {
|
|
117
117
|
if (typeof ex === "string") {
|
|
118
|
-
if (moduleDirectories.some((dir) => id.includes(join(dir,
|
|
118
|
+
if (moduleDirectories.some((dir) => id.includes(join(dir, ex))))
|
|
119
119
|
return true;
|
|
120
120
|
} else {
|
|
121
121
|
if (ex.test(id))
|