Skip to content

Commit 647d7f4

Browse files
committed
Merge branch 'feature-viewer3' of https://github.com/Imiss-U1025/lowcoder into feature-viewer3
2 parents c19cc58 + 50f6737 commit 647d7f4

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

viewer/config/test/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default {
2727
modulePaths: [
2828
"<rootDir>/src",
2929
path.resolve(currentDir, "../../packages/lowcoder/src"),
30-
path.resolve(currentDir, "../../packages/lowcoder-comps/src"),
30+
// path.resolve(currentDir, "../../packages/lowcoder-comps/src"),
3131
path.resolve(currentDir, "../../packages/lowcoder-design/src"),
3232
],
3333
setupFiles: [path.resolve(currentDir, "./jest.setup.js")],

viewer/packages/lowcoder-core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"lib"
3232
],
3333
"exports": {
34-
"import": "./lib/index.js",
35-
"require": "./lib/index.cjs"
34+
"import": "./lib/index.js"
3635
},
3736
"author": "Lowcoder"
3837
}

viewer/packages/lowcoder-core/rollup.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@ import commonjs from "@rollup/plugin-commonjs";
22
import resolve from "@rollup/plugin-node-resolve";
33
import typescript from "@rollup/plugin-typescript";
44
import dts from "rollup-plugin-dts";
5+
import { visualizer } from 'rollup-plugin-visualizer';
6+
import { terser } from 'rollup-plugin-terser';
57

68
const config = [
79
{
810
input: "src/index.ts",
9-
plugins: [resolve({ browser: true }), commonjs(), typescript()],
11+
plugins: [resolve({ browser: true }), commonjs(), typescript(), terser(), visualizer({ open: true })],
1012
output: {
1113
dir: "lib",
1214
format: "esm",
1315
},
1416
external: ["lodash", "stylis"],
1517
},
16-
{
18+
/* {
1719
input: "src/index.ts",
1820
plugins: [
1921
resolve({ browser: true }),
@@ -25,7 +27,7 @@ const config = [
2527
file: "lib/index.cjs",
2628
},
2729
external: ["lodash", "stylis"],
28-
},
30+
}, */
2931
{
3032
input: "lib/dts/index.d.ts",
3133
plugins: [

viewer/packages/lowcoder/tsconfig.paths.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"paths": {
44
"@lowcoder-ee/*": ["*"],
55
"lowcoder-sdk": ["index.sdk"],
6-
"*": ["*", "../../lowcoder-comps/src/*", "../../lowcoder-design/src/*"],
6+
"*": ["*", "../../lowcoder-design/src/*"],
77
"package": ["./package/*"]
88
}
99
}

viewer/scripts/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function currentDirName(importMetaUrl) {
1515
return dirname(fileURLToPath(importMetaUrl));
1616
}
1717

18-
const builtinPlugins = ["lowcoder-comps"];
18+
// const builtinPlugins = ["lowcoder-comps"];
1919
const curDirName = currentDirName(import.meta.url);
2020

2121
async function downloadFile(url, dest) {
@@ -94,11 +94,11 @@ buildVars.forEach(({ name, defaultValue }) => {
9494
shell.exec(`BUILD_TARGET=browserCheck yarn workspace lowcoder build`, { fatal: true });
9595
shell.exec(`yarn workspace lowcoder build`, { fatal: true });
9696

97-
if (process.env.REACT_APP_BUNDLE_BUILTIN_PLUGIN) {
97+
/* if (process.env.REACT_APP_BUNDLE_BUILTIN_PLUGIN) {
9898
for (const pluginName of builtinPlugins) {
9999
await buildBuiltinPlugin(pluginName);
100100
}
101-
}
101+
} */
102102

103103
if (process.argv.includes("--internal-deploy")) {
104104
const deployDir = shell.env["DEPLOY_DIR"];

0 commit comments

Comments
 (0)