@umijs/mfsu 4.0.0-rc.20 → 4.0.0-rc.23

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.
@@ -11,9 +11,11 @@ const getAliasedPath_1 = require("./getAliasedPath");
11
11
  const isExternals_1 = require("./isExternals");
12
12
  // const UNMATCH_LIBS = ['umi', 'dumi', '@alipay/bigfish'];
13
13
  const RE_NODE_MODULES = /node_modules/;
14
- const RE_UMI_LOCAL_DEV = /umi(-next)?\/packages\//;
15
14
  function isUmiLocalDev(path) {
16
- return RE_UMI_LOCAL_DEV.test((0, utils_1.winPath)(path));
15
+ const rootPath = (0, utils_1.isLocalDev)();
16
+ return rootPath
17
+ ? (0, utils_1.winPath)(path).startsWith((0, utils_1.winPath)((0, path_1.join)(rootPath, './packages')))
18
+ : false;
17
19
  }
18
20
  function checkMatch({ value, path, opts, isExportAll, depth, cache, filename, }) {
19
21
  var _a, _b;
package/dist/mfsu.js CHANGED
@@ -86,6 +86,8 @@ class MFSU {
86
86
  const realEntry = (0, utils_1.tryPaths)([
87
87
  (0, path_1.join)(entry, 'index.tsx'),
88
88
  (0, path_1.join)(entry, 'index.ts'),
89
+ (0, path_1.join)(entry, 'index.jsx'),
90
+ (0, path_1.join)(entry, 'index.js'),
89
91
  ]);
90
92
  (0, assert_1.default)(realEntry, `entry file not found, please configure the specific entry path. (e.g. 'src/index.tsx')`);
91
93
  entry = realEntry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/mfsu",
3
- "version": "4.0.0-rc.20",
3
+ "version": "4.0.0-rc.23",
4
4
  "description": "@umijs/mfsu",
5
5
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/mfsu#readme",
6
6
  "bugs": "https://github.com/umijs/umi-next/issues",
@@ -22,14 +22,14 @@
22
22
  "test": "umi-scripts jest-turbo"
23
23
  },
24
24
  "dependencies": {
25
- "@umijs/bundler-esbuild": "4.0.0-rc.20",
26
- "@umijs/bundler-utils": "4.0.0-rc.20",
27
- "@umijs/utils": "4.0.0-rc.20",
25
+ "@umijs/bundler-esbuild": "4.0.0-rc.23",
26
+ "@umijs/bundler-utils": "4.0.0-rc.23",
27
+ "@umijs/utils": "4.0.0-rc.23",
28
28
  "enhanced-resolve": "5.9.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "mrmime": "1.0.0",
32
- "webpack": "5.72.0",
32
+ "webpack": "5.72.1",
33
33
  "webpack-virtual-modules": "0.4.3"
34
34
  },
35
35
  "publishConfig": {