mirror of
https://github.com/galacean/engine.git
synced 2026-05-13 05:57:30 +08:00
This reverts commit f00cc7a975.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@galacean/engine-root",
|
||||
"version": "1.0.0",
|
||||
"packageManager": "pnpm@8.6.2",
|
||||
"packageManager": "pnpm@8.3.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
|
||||
982
pnpm-lock.yaml
generated
982
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -68,7 +68,7 @@ function config({ location, pkgJson }) {
|
||||
|
||||
return {
|
||||
umd: (compress) => {
|
||||
const umdConfig = pkgJson.umd;
|
||||
const umdConfig = pkgJson.umd
|
||||
let file = path.join(location, "dist", "browser.js");
|
||||
const plugins = [...commonPlugins];
|
||||
if (compress) {
|
||||
@@ -76,7 +76,7 @@ function config({ location, pkgJson }) {
|
||||
file = path.join(location, "dist", "browser.min.js");
|
||||
}
|
||||
|
||||
const umdExternal = Object.keys(umdConfig.globals ?? {});
|
||||
const umdExternal = Object.keys(umdConfig.globals ?? {})
|
||||
|
||||
return {
|
||||
input,
|
||||
@@ -104,7 +104,9 @@ function config({ location, pkgJson }) {
|
||||
sourcemap: false
|
||||
}
|
||||
],
|
||||
external: external.concat("@galacean/engine-miniprogram-adapter").map((name) => `${name}/dist/miniprogram`),
|
||||
external: Object.keys(pkgJson.dependencies || {})
|
||||
.concat("@galacean/engine-miniprogram-adapter")
|
||||
.map((name) => `${name}/dist/miniprogram`),
|
||||
plugins
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user