agilebuilder-ui 1.1.65-tmp21 → 1.1.65-tmp23

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": "agilebuilder-ui",
3
- "version": "1.1.65-tmp21",
3
+ "version": "1.1.65-tmp23",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/index.cjs",
package/vite.config.js CHANGED
@@ -82,11 +82,6 @@ export default defineConfig(({ mode }) => ({
82
82
  plugins: [
83
83
  vue(),
84
84
  vueJsx(),
85
- // dts({
86
- // //指定使用的tsconfig.json在整个项目根目录下,如果不配置,也可以在components下新建tsconfig.json
87
- // outDir: ['lib'],
88
- // tsconfigPath: './tsconfig.json'
89
- // }),
90
85
  terser({
91
86
  compress: {
92
87
  drop_debugger: ['production'].includes(mode),
@@ -96,29 +91,7 @@ export default defineConfig(({ mode }) => ({
96
91
  // 对于console.error,不做任何处理
97
92
  comments: (node, comment) => comment.type === 'error'
98
93
  }
99
- }),
100
- // {
101
- // name: 'copy-css-files',
102
- // generateBundle(options, bundle) {
103
- // // 处理CSS文件
104
- // for (const fileName in bundle) {
105
- // console.log('css--fileName--',fileName)
106
- // const chunk = bundle[fileName]
107
- // if (fileName.endsWith('.css') || fileName.endsWith('.scss')) {
108
- // // 确保目录存在
109
- // const cssDir = path.join('lib', 'css')
110
- // console.log('css--cssDir--',cssDir)
111
- // if (!fs.existsSync(cssDir)) {
112
- // fs.mkdirSync(cssDir, { recursive: true })
113
- // }
114
-
115
- // // 写入CSS文件
116
- // const cssPath = path.join(cssDir, fileName)
117
- // fs.writeFileSync(cssPath, chunk.source)
118
- // }
119
- // }
120
- // }
121
- // }
94
+ })
122
95
  ],
123
96
  resolve: {
124
97
  extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
@@ -126,50 +99,5 @@ export default defineConfig(({ mode }) => ({
126
99
  '@': fileURLToPath(new URL('./src', import.meta.url))
127
100
  }
128
101
  }
129
-
130
- // plugins: [
131
- // vue(),
132
- // vueJsx(),
133
- // terser({
134
- // compress: {
135
- // drop_debugger: ['production'].includes(mode),
136
- // pure_funcs: ['production'].includes(mode) ? ['console.log', 'console.info', 'console.warn', 'console.debug'] : [],
137
- // },
138
- // output: {
139
- // // 对于console.error,不做任何处理
140
- // comments: (node, comment) => comment.type === 'error'
141
- // }
142
- // })
143
- // ],
144
- // build: {
145
- // outDir: "lib", //输出文件名称
146
- // lib: {
147
- // entry: path.resolve(__dirname, "./packages/index.js"), //指定组件编译入口文件
148
- // name: "super-ui", // 打包js 名称
149
- // fileName: "super-ui",
150
- // }, //库编译模式配置
151
- // rollupOptions: {
152
- // // 确保外部化处理那些你不想打包进库的依赖
153
- // external: ["vue", "jsx"],
154
- // output: {
155
- // // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
156
- // globals: {
157
- // vue: "Vue",
158
- // },
159
- // // 定义生成css的名称
160
- // assetFileNames: (assetInfo) => {
161
- // if (assetInfo.name == 'style.css')
162
- // return 'super-ui.css'; // 打包的css名称
163
- // return assetInfo.name;
164
- // },
165
- // },
166
- // }, // rollup打包配置
167
- // sourcemap: mode === 'development'
168
- // },
169
- // // ...其他配置项
170
- // resolve: {
171
- // // 忽略后缀名的配置选项, 添加 .vue 选项时要记得原本默认忽略的选项也要手动写入
172
- // extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
173
- // }
174
102
  }));
175
103