@midwayjs/mock 4.0.1 → 4.0.3

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/rspack.js CHANGED
@@ -43,7 +43,10 @@ function devPlugin(options) {
43
43
  const resolvedBaseDir = baseDir;
44
44
  const basePath = options.basePath || '/api';
45
45
  const watchInclude = options.watch?.include || [/\.(ts|tsx|js|mjs|cjs)$/];
46
- const watchExclude = options.watch?.exclude || [/\.d\.ts$/];
46
+ const watchExclude = options.watch?.exclude || [
47
+ /\.d\.ts$/,
48
+ /\/\.midway-esm-fallback-[^/]+\/.+$/,
49
+ ];
47
50
  const getRequestHandler = options.getRequestHandler || getDefaultRequestHandler;
48
51
  const hmrImportQueryEnvKey = 'MIDWAY_HMR_IMPORT_QUERY';
49
52
  let appPromise = null;
package/dist/vite.js CHANGED
@@ -45,7 +45,10 @@ function devPlugin(options) {
45
45
  const resolvedBaseDir = baseDir;
46
46
  const basePath = options.basePath || '/api';
47
47
  const watchInclude = options.watch?.include || [/\.(ts|tsx|js|mjs|cjs)$/];
48
- const watchExclude = options.watch?.exclude || [/\.d\.ts$/];
48
+ const watchExclude = options.watch?.exclude || [
49
+ /\.d\.ts$/,
50
+ /\/\.midway-esm-fallback-[^/]+\/.+$/,
51
+ ];
49
52
  const getRequestHandler = options.getRequestHandler || getDefaultRequestHandler;
50
53
  const routeManifestOptions = options.routeManifest && typeof options.routeManifest === 'object'
51
54
  ? options.routeManifest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mock",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "create your test app from midway framework",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "license": "MIT",
52
52
  "devDependencies": {
53
- "@midwayjs/core": "^4.0.1",
53
+ "@midwayjs/core": "^4.0.3",
54
54
  "@midwayjs/logger": "^4.0.0",
55
55
  "@types/amqplib": "0.10.8",
56
56
  "amqplib": "0.10.9",
@@ -71,5 +71,5 @@
71
71
  "type": "git",
72
72
  "url": "https://github.com/midwayjs/midway.git"
73
73
  },
74
- "gitHead": "fcea8a9fcbfa39a4799ac19d072812c1578dcf8e"
74
+ "gitHead": "1eb7584f63456836b016f156a19a0f77a5256666"
75
75
  }