Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 092ec73

Browse files
author
FalkWolsky
committed
Small changes to exclude lowcoder-comps
1 parent 0c99982 commit 092ec73

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
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/rollup.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ 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",

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)