lu-lowcode-package-form 0.5.2 → 0.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lu-lowcode-package-form",
3
- "version": "0.5.2",
3
+ "version": "0.6.1",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.3.7",
6
6
  "@testing-library/jest-dom": "^5.17.0",
@@ -9,7 +9,8 @@
9
9
  "antd": "^5.18.0",
10
10
  "web-vitals": "^2.1.4"
11
11
  },
12
- "main": "dist/index.umd.js",
12
+ "main": "dist/index.cjs.js",
13
+ "module": "dist/index.es.js",
13
14
  "scripts": {
14
15
  "start": "react-scripts start",
15
16
  "build": "vite build",
package/vite.config.js CHANGED
@@ -8,6 +8,7 @@ export default defineConfig({
8
8
  lib: {
9
9
  entry: 'src/components/index.jsx', // 入口文件
10
10
  name: 'luLowcodePackageForm',
11
+ formats: ['es', 'cjs'], // 指定生成的模块格式
11
12
  fileName: (format) => `index.${format}.js`,
12
13
  },
13
14
  rollupOptions: {