vite-node 1.1.2 → 1.2.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/cli.cjs CHANGED
@@ -20,7 +20,7 @@ require('node:url');
20
20
  require('node:vm');
21
21
  require('node:events');
22
22
 
23
- var version = "1.1.2";
23
+ var version = "1.2.0";
24
24
 
25
25
  const cli = cac("vite-node");
26
26
  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
@@ -18,7 +18,7 @@ import 'node:url';
18
18
  import 'node:vm';
19
19
  import 'node:events';
20
20
 
21
- var version = "1.1.2";
21
+ var version = "1.2.0";
22
22
 
23
23
  const cli = cac("vite-node");
24
24
  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
@@ -208,7 +208,8 @@ class ViteNodeServer {
208
208
  (_a = options.deps).inline ?? (_a.inline = true);
209
209
  } else if (options.deps.inline !== true) {
210
210
  (_b = options.deps).inline ?? (_b.inline = []);
211
- options.deps.inline.push(...utils.toArray(ssrOptions.noExternal));
211
+ const inline = options.deps.inline;
212
+ options.deps.inline.push(...utils.toArray(ssrOptions.noExternal).filter((dep) => !inline.includes(dep)));
212
213
  }
213
214
  }
214
215
  if (process.env.VITE_NODE_DEBUG_DUMP) {
package/dist/server.mjs CHANGED
@@ -206,7 +206,8 @@ class ViteNodeServer {
206
206
  (_a = options.deps).inline ?? (_a.inline = true);
207
207
  } else if (options.deps.inline !== true) {
208
208
  (_b = options.deps).inline ?? (_b.inline = []);
209
- options.deps.inline.push(...toArray(ssrOptions.noExternal));
209
+ const inline = options.deps.inline;
210
+ options.deps.inline.push(...toArray(ssrOptions.noExternal).filter((dep) => !inline.includes(dep)));
210
211
  }
211
212
  }
212
213
  if (process.env.VITE_NODE_DEBUG_DUMP) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vite-node",
3
3
  "type": "module",
4
- "version": "1.1.2",
4
+ "version": "1.2.0",
5
5
  "description": "Vite as Node.js runtime",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",