@navita/vite-plugin 2.0.4 → 2.0.5
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/index.cjs +2 -2
- package/index.mjs +2 -2
- package/package.json +2 -2
- package/remix.cjs +1 -1
- package/remix.mjs +1 -1
package/index.cjs
CHANGED
|
@@ -74,7 +74,7 @@ function navita(options) {
|
|
|
74
74
|
renderer.clearCache(id);
|
|
75
75
|
return null;
|
|
76
76
|
}
|
|
77
|
-
const { result
|
|
77
|
+
const { result, sourceMap, dependencies } = await renderer.transformAndProcess({
|
|
78
78
|
content: code,
|
|
79
79
|
filePath: id
|
|
80
80
|
});
|
|
@@ -126,7 +126,7 @@ function navita(options) {
|
|
|
126
126
|
}
|
|
127
127
|
clearTimeout(updateTimer);
|
|
128
128
|
updateTimer = setTimeout(()=>{
|
|
129
|
-
const { moduleGraph
|
|
129
|
+
const { moduleGraph, ws } = server;
|
|
130
130
|
const mod = moduleGraph.getModuleById(RESOLVED_VIRTUAL_MODULE_ID);
|
|
131
131
|
if (mod) {
|
|
132
132
|
moduleGraph.invalidateModule(mod);
|
package/index.mjs
CHANGED
|
@@ -72,7 +72,7 @@ function navita(options) {
|
|
|
72
72
|
renderer.clearCache(id);
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
|
-
const { result
|
|
75
|
+
const { result, sourceMap, dependencies } = await renderer.transformAndProcess({
|
|
76
76
|
content: code,
|
|
77
77
|
filePath: id
|
|
78
78
|
});
|
|
@@ -124,7 +124,7 @@ function navita(options) {
|
|
|
124
124
|
}
|
|
125
125
|
clearTimeout(updateTimer);
|
|
126
126
|
updateTimer = setTimeout(()=>{
|
|
127
|
-
const { moduleGraph
|
|
127
|
+
const { moduleGraph, ws } = server;
|
|
128
128
|
const mod = moduleGraph.getModuleById(RESOLVED_VIRTUAL_MODULE_ID);
|
|
129
129
|
if (mod) {
|
|
130
130
|
moduleGraph.invalidateModule(mod);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navita/vite-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Navita Vite Plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@navita/core": "1.0.1",
|
|
26
|
-
"@navita/css": "0.2.
|
|
26
|
+
"@navita/css": "0.2.1"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"author": "Eagerpatch",
|
package/remix.cjs
CHANGED
|
@@ -30,7 +30,7 @@ let cssFileName;
|
|
|
30
30
|
function navitaRemix(options) {
|
|
31
31
|
let isProduction = false;
|
|
32
32
|
let hasEmittedCss = false;
|
|
33
|
-
const { renderChunk
|
|
33
|
+
const { renderChunk, ...navitaVite } = index.navita(options);
|
|
34
34
|
return [
|
|
35
35
|
navitaVite,
|
|
36
36
|
{
|
package/remix.mjs
CHANGED