@marko/vite 4.1.5 → 4.1.7
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/index.mjs +8 -7
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -900,21 +900,22 @@ function markoPlugin(opts = {}) {
|
|
|
900
900
|
configureServer(_server) {
|
|
901
901
|
ssrConfig.hot = domConfig.hot = true;
|
|
902
902
|
devServer = _server;
|
|
903
|
-
devServer.watcher.on("all", (type,
|
|
904
|
-
|
|
903
|
+
devServer.watcher.on("all", (type, originalFileName) => {
|
|
904
|
+
const fileName = normalizePath(originalFileName);
|
|
905
|
+
cachedSources.delete(fileName);
|
|
905
906
|
if (type === "unlink") {
|
|
906
|
-
entryIds.delete(
|
|
907
|
-
transformWatchFiles.delete(
|
|
908
|
-
transformOptionalFiles.delete(
|
|
907
|
+
entryIds.delete(fileName);
|
|
908
|
+
transformWatchFiles.delete(fileName);
|
|
909
|
+
transformOptionalFiles.delete(fileName);
|
|
909
910
|
}
|
|
910
911
|
for (const [id, files] of transformWatchFiles) {
|
|
911
|
-
if (anyMatch(files,
|
|
912
|
+
if (anyMatch(files, fileName)) {
|
|
912
913
|
devServer.watcher.emit("change", id);
|
|
913
914
|
}
|
|
914
915
|
}
|
|
915
916
|
if (type === "add" || type === "unlink") {
|
|
916
917
|
for (const [id, files] of transformOptionalFiles) {
|
|
917
|
-
if (anyMatch(files,
|
|
918
|
+
if (anyMatch(files, fileName)) {
|
|
918
919
|
devServer.watcher.emit("change", id);
|
|
919
920
|
}
|
|
920
921
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/vite",
|
|
3
3
|
"description": "A Marko plugin for Vite",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.7",
|
|
5
5
|
"author": "Dylan Piercey <dpiercey@ebay.com>",
|
|
6
6
|
"bugs": "https://github.com/marko-js/vite/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
+
"@chialab/cjs-to-esm": "^0.18.0",
|
|
8
9
|
"anymatch": "^3.1.3",
|
|
9
10
|
"domelementtype": "^2.3.0",
|
|
10
11
|
"domhandler": "^5.0.3",
|
|
@@ -15,7 +16,6 @@
|
|
|
15
16
|
"devDependencies": {
|
|
16
17
|
"@changesets/changelog-github": "^0.5.0",
|
|
17
18
|
"@changesets/cli": "^2.27.1",
|
|
18
|
-
"@chialab/cjs-to-esm": "^0.18.0",
|
|
19
19
|
"@marko/compiler": "^5.34.7",
|
|
20
20
|
"@marko/fixture-snapshots": "^2.2.1",
|
|
21
21
|
"@marko/testing-library": "^6.2.0",
|