@nocobase/build 2.1.0-beta.32 → 2.1.0-beta.34
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/lib/buildPlugin.js +2 -2
- package/package.json +2 -2
package/lib/buildPlugin.js
CHANGED
|
@@ -160,7 +160,6 @@ const external = [
|
|
|
160
160
|
"ahooks",
|
|
161
161
|
"lodash",
|
|
162
162
|
"china-division",
|
|
163
|
-
"file-saver",
|
|
164
163
|
// langChain
|
|
165
164
|
"langchain",
|
|
166
165
|
"@langchain/core",
|
|
@@ -505,10 +504,11 @@ async function buildPluginClient(cwd, userConfig, sourcemap, log, lane = "client
|
|
|
505
504
|
}
|
|
506
505
|
const sourcePackages = (0, import_buildPluginUtils.getPluginBrowserSourcePackages)(sourceCwds, import_constant.globExcludeFiles);
|
|
507
506
|
const excludePackages = (0, import_buildPluginUtils.getExcludePackages)(sourcePackages, external, pluginPrefix);
|
|
507
|
+
const browserExternalPackages = excludePackages.filter((packageName) => packageName !== "file-saver");
|
|
508
508
|
(0, import_buildPluginUtils.checkRequire)(clientFiles, log);
|
|
509
509
|
(0, import_buildPluginUtils.buildCheck)({ cwd, packageJson, entry: lane, files: clientFiles, log });
|
|
510
510
|
const outDir = import_path.default.join(cwd, target_dir, laneConfig.distDir);
|
|
511
|
-
const globals =
|
|
511
|
+
const globals = browserExternalPackages.reduce((prev, curr) => {
|
|
512
512
|
if (curr.startsWith("@nocobase")) {
|
|
513
513
|
laneConfig.externalSubpaths.forEach((subpath) => {
|
|
514
514
|
prev[`${curr}/${subpath}`] = `${curr}/${subpath}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/build",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.34",
|
|
4
4
|
"description": "Library build tool based on rollup.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"build": "tsup",
|
|
54
54
|
"build:watch": "tsup --watch"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "ca804833299c547f8d49f8d58f73273a4bfcd03c"
|
|
57
57
|
}
|