Can you create aminimal examplethat reproduces this behavior? Preferably, usethis environmentfor your reproduction What happens and why it is incorrect I useexport default definecomponentcan be ok but usesetup lang="ts"is false. it seems the plugin is wrong in run time. ...
{"@babel/core":"^7.13.8","@babel/plugin-proposal-class-properties":"^7.13.0","@babel/plugin-proposal-decorators":"^7.12.13","@babel/preset-env":"^7.16.8","@babel/preset-typescript":"^7.12.16","@dtsgenerator/replace-namespace":"^1.5.1","@faker-js/faker":"^5.5.3","@mdi/...
import{defineConfig}from'vite';import*aspathfrom'path';importbabelfrom'vite-plugin-babel';importcommonjsfrom'@rollup/plugin-commonjs';importdtsfrom'vite-plugin-dts';importpkgfrom'./package.json';importterserfrom'@rollup/plugin-terser';importtypescriptfrom'rollup-plugin-typescript2';importvuefrom'@...
--dts-only 指令等同于tsc的emitDeclarationOnly。可以使用此指令只生成声明文件。 生成sourcemap tsbuild index.ts --sourcemap 会导出 ./dist/index.js and ./dist/index.js.map。 如果有多个入口文件,每个入口文件都会生成相对于的.map文件。 构建产物格式 支持ESM、CJS和IIFE。 可以一次性构建多种类型: tsbui...