diff --git a/internal/vite-config/src/plugins/appConfig.ts b/internal/vite-config/src/plugins/appConfig.ts index ede7f9d5..458849aa 100644 --- a/internal/vite-config/src/plugins/appConfig.ts +++ b/internal/vite-config/src/plugins/appConfig.ts @@ -25,8 +25,6 @@ async function createAppConfigPlugin({ }; } const { version = "" } = await readPackageJSON(resolve(root, "package.json")); - const configEnv = getEnvConfig(); - return { name: PLUGIN_NAME, async configResolved(_config) { diff --git a/packages/gbeata/.fatherrc.ts b/packages/gbeata/.fatherrc.ts index f5bb90f8..c42632a0 100644 --- a/packages/gbeata/.fatherrc.ts +++ b/packages/gbeata/.fatherrc.ts @@ -12,6 +12,7 @@ export default defineConfig({ ignores: [ 'src/**/*.md', // 避免打包demo文件到npm包里面 ], + sourcemap: true, output: 'lib', }, // 打包的时候自动引入antd的样式链接 diff --git a/packages/gbeata/package.json b/packages/gbeata/package.json index bde3a6b3..9948c205 100644 --- a/packages/gbeata/package.json +++ b/packages/gbeata/package.json @@ -15,7 +15,7 @@ "license": "MIT", "main": "lib/index.js", "module": "es/index.js", - "types": "dist/esm/index.d.ts", + "types": "dist/index.d.ts", "typings": "lib/index.d.ts", "files": [ "dist", diff --git a/packages/gbeata/src/index.ts b/packages/gbeata/src/index.ts index f03c5076..5af35ab5 100644 --- a/packages/gbeata/src/index.ts +++ b/packages/gbeata/src/index.ts @@ -21,7 +21,6 @@ import GTable, { } from './GTable'; import { default as GTagGroup } from './GTagGroup'; -export type * from './index.d'; export { GAction, GButton, diff --git a/packages/gbeata/tsconfig.json b/packages/gbeata/tsconfig.json index 99642645..ab44281f 100644 --- a/packages/gbeata/tsconfig.json +++ b/packages/gbeata/tsconfig.json @@ -3,7 +3,6 @@ "lib": ["ESNext", "DOM"], "rootDirs": ["src", "docs"], "strict": true, - "declaration": true, "skipLibCheck": true, "esModuleInterop": true, "jsx": "react",