Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
rollup.config.dts.js 723 Bytes
Copy Edit Raw Blame History
import dts from 'rollup-plugin-dts'
import del from 'rollup-plugin-delete'
console.log(process.env.npm_config_taro)
const config = [
{
// input: './dist/esm/types/src/packages/nutui.react.d.ts',
input: process.env.npm_config_taro
? './dist/types/nutui.taro.react.build.ts'
: './dist/types/nutui.react.build.ts',
output: [{ file: 'dist/types/index.d.ts', format: 'es' }],
plugins: [
dts({
compilerOptions: {
baseUrl: '.',
paths: {
'@/*': ['src/*'],
},
},
}),
// del({
// hook: 'buildEnd',
// targets: ['./dist/esm/types', './dist/types/*.build.ts'],
// }),
],
},
]
export default config
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化