Generates JS files inside src folder.
- 主要語言
- TypeScript
- 星號
- 87
- 分支
- 12
- PR 合併指標
- 30 天內沒有已合併 PR
描述
```
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import dts from 'vite-dts';
import { resolve } from 'path';
import Icons from 'unplugin-icons/vite';
export default defineConfig({
plugins: [
dts(),
Icons(),
react({
babel: {
plugins: ['macros']
}
})
],
build: {
lib: {
entry: resolve('src', 'App.tsx'),
formats: ['es'],
name: 'labour-rates-generic',
fileName: (format) => `labour-rates-generic.${format}.js` //put the name of your lib
},
rollupOptions: {
external: ['react', 'react-dom']
}
}
});
```
Trying to use dts, but the output generates js files inside the src folder. Maybe I'm doing something wrong.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。