vite-node
Advanced tools
Comparing version 2.0.0-beta.10 to 2.0.0-beta.11
@@ -46,8 +46,2 @@ import { TransformResult, ViteDevServer } from 'vite'; | ||
resolveId(id: string, importer?: string, transformMode?: 'web' | 'ssr'): Promise<ViteNodeResolveId | null>; | ||
resolveModule(rawId: string, resolved: ViteNodeResolveId | null): Promise<{ | ||
id: string; | ||
fsPath: string; | ||
external: string | null; | ||
}>; | ||
private isModuleDirectory; | ||
getSourceMap(source: string): EncodedSourceMap | null; | ||
@@ -54,0 +48,0 @@ private assertMode; |
{ | ||
"name": "vite-node", | ||
"type": "module", | ||
"version": "2.0.0-beta.10", | ||
"version": "2.0.0-beta.11", | ||
"description": "Vite as Node.js runtime", | ||
@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", |
@@ -58,2 +58,3 @@ <p align="center"> | ||
_file.ts_ | ||
```ts | ||
@@ -66,2 +67,3 @@ #!/usr/bin/env vite-node --script | ||
And make the file executable: | ||
```sh | ||
@@ -72,2 +74,3 @@ chmod +x ./file.ts | ||
Now, you can run the file without passing it into Vite Node: | ||
```sh | ||
@@ -151,3 +154,3 @@ $ ./file.ts hello | ||
loadDumppedModules: true, | ||
} | ||
}, | ||
}) | ||
@@ -170,3 +173,3 @@ ``` | ||
const runner = new ViteNodeRunner({ | ||
debug: true | ||
debug: true, | ||
}) | ||
@@ -173,0 +176,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
196437
5748
190