@modern-js/server 2.55.0 → 2.55.1-alpha.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.
@@ -91,6 +91,7 @@ function startWatcher({ pwd, distDir, apiDir, sharedDir, watchOptions, server })
91
91
  watcher.listen(defaultWatchedPaths, mergedWatchOptions, (filepath, event) => {
92
92
  if (filepath.includes("-server-loaders.js")) {
93
93
  delete require.cache[filepath];
94
+ return;
94
95
  } else {
95
96
  watcher.updateDepTree();
96
97
  watcher.cleanDepCache(filepath);
@@ -107,6 +107,7 @@ function startWatcher(param) {
107
107
  watcher.listen(defaultWatchedPaths, mergedWatchOptions, function(filepath, event) {
108
108
  if (filepath.includes("-server-loaders.js")) {
109
109
  delete require.cache[filepath];
110
+ return;
110
111
  } else {
111
112
  watcher.updateDepTree();
112
113
  watcher.cleanDepCache(filepath);
@@ -57,6 +57,7 @@ function startWatcher({ pwd, distDir, apiDir, sharedDir, watchOptions, server })
57
57
  watcher.listen(defaultWatchedPaths, mergedWatchOptions, (filepath, event) => {
58
58
  if (filepath.includes("-server-loaders.js")) {
59
59
  delete require.cache[filepath];
60
+ return;
60
61
  } else {
61
62
  watcher.updateDepTree();
62
63
  watcher.cleanDepCache(filepath);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.55.0",
18
+ "version": "2.55.1-alpha.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -48,11 +48,11 @@
48
48
  "minimatch": "^3.0.4",
49
49
  "path-to-regexp": "^6.2.0",
50
50
  "ws": "^8.13.0",
51
- "@modern-js/runtime-utils": "2.55.0",
52
- "@modern-js/server-utils": "2.55.0",
53
51
  "@modern-js/types": "2.55.0",
52
+ "@modern-js/server-core": "2.55.0",
53
+ "@modern-js/runtime-utils": "2.55.0",
54
54
  "@modern-js/utils": "2.55.0",
55
- "@modern-js/server-core": "2.55.0"
55
+ "@modern-js/server-utils": "2.55.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@rsbuild/core": "0.7.10",