vite-node 0.15.1 → 0.15.2
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/chunk-server.cjs +2 -1
- package/dist/chunk-server.mjs +2 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/package.json +3 -3
package/dist/chunk-server.cjs
CHANGED
|
@@ -141,7 +141,8 @@ class ViteNodeServer {
|
|
|
141
141
|
async resolveId(id, importer) {
|
|
142
142
|
if (importer && !importer.startsWith(this.server.config.root))
|
|
143
143
|
importer = pathe.join(this.server.config.root, importer);
|
|
144
|
-
|
|
144
|
+
const mode = importer && this.getTransformMode(importer) || "ssr";
|
|
145
|
+
return this.server.pluginContainer.resolveId(id, importer, { ssr: mode === "ssr" });
|
|
145
146
|
}
|
|
146
147
|
async fetchModule(id) {
|
|
147
148
|
if (!this.fetchPromiseMap.has(id)) {
|
package/dist/chunk-server.mjs
CHANGED
|
@@ -135,7 +135,8 @@ class ViteNodeServer {
|
|
|
135
135
|
async resolveId(id, importer) {
|
|
136
136
|
if (importer && !importer.startsWith(this.server.config.root))
|
|
137
137
|
importer = join(this.server.config.root, importer);
|
|
138
|
-
|
|
138
|
+
const mode = importer && this.getTransformMode(importer) || "ssr";
|
|
139
|
+
return this.server.pluginContainer.resolveId(id, importer, { ssr: mode === "ssr" });
|
|
139
140
|
}
|
|
140
141
|
async fetchModule(id) {
|
|
141
142
|
if (!this.fetchPromiseMap.has(id)) {
|
package/dist/cli.cjs
CHANGED
package/dist/cli.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-node",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "Vite as Node.js runtime",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"debug": "^4.3.4",
|
|
63
63
|
"kolorist": "^1.5.1",
|
|
64
|
-
"mlly": "^0.5.
|
|
64
|
+
"mlly": "^0.5.3",
|
|
65
65
|
"pathe": "^0.2.0",
|
|
66
66
|
"vite": "^2.9.12"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/debug": "^4.1.7",
|
|
70
70
|
"cac": "^6.7.12",
|
|
71
|
-
"rollup": "^2.75.
|
|
71
|
+
"rollup": "^2.75.7"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "rimraf dist && rollup -c",
|