Skip to content

Commit 7ee5a7b

Browse files
fix importing errors in tests
1 parent 29de1f6 commit 7ee5a7b

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

client/packages/lowcoder-core/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
"files": [
3131
"lib"
3232
],
33-
"exports": {
34-
"import": "./lib/index.js"
35-
},
33+
"exports": "./lib/index.js",
3634
"author": "Lowcoder"
3735
}

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

+13-13
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ const config = [
1313
},
1414
external: ["lodash", "stylis"],
1515
},
16-
{
17-
input: "src/index.ts",
18-
plugins: [
19-
resolve({ browser: true }),
20-
commonjs(),
21-
typescript({ declaration: false, declarationDir: undefined }),
22-
],
23-
output: {
24-
format: "cjs",
25-
file: "lib/index.cjs",
26-
},
27-
external: ["lodash", "stylis"],
28-
},
16+
// {
17+
// input: "src/index.ts",
18+
// plugins: [
19+
// resolve({ browser: true }),
20+
// commonjs(),
21+
// typescript({ declaration: false, declarationDir: undefined }),
22+
// ],
23+
// output: {
24+
// format: "cjs",
25+
// file: "lib/index.cjs",
26+
// },
27+
// external: ["lodash", "stylis"],
28+
// },
2929
{
3030
input: "lib/dts/index.d.ts",
3131
plugins: [

client/packages/lowcoder-core/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"declaration": true,
44
"declarationDir": "lib/dts",
5-
"target": "es5",
5+
"target": "ESNext",
66
"experimentalDecorators": true,
77
"lib": ["dom", "dom.iterable", "esnext"],
88
"allowJs": true,

0 commit comments

Comments
 (0)