We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题描述
基于 dumi 开发组件库,如果在 src 声明需要导出的对象,在内部通过 @ 别名路径引导,导致通过 father-build 构建的产物存在重复导出问题。
复现步骤
$ npx @umijs/create-dumi-lib
export const config = { test: 12 };
export { default as Foo } from './Foo'; export * from './config';
import React from 'react'; import { config } from '@/config'; export default ({ title }: { title: string }) => { return ( <h1> {title} {config.test} </h1> ); };
潜在的问题 引用的对象不是同一个,可能导致对象更新操作,不会触发对应更新操作,比如,这里的对象是一个 ReactContext 对象。
The text was updated successfully, but these errors were encountered:
需要通过 @rollup/plugin-alias 兼容 @ 路径别名
Sorry, something went wrong.
father 4 已发布,可尝试升级到最新版:https://github.com/umijs/father/blob/master/docs/guide/migrate.md
旧版本不再维护,感谢支持
Successfully merging a pull request may close this issue.
问题描述
基于 dumi 开发组件库,如果在 src 声明需要导出的对象,在内部通过 @ 别名路径引导,导致通过 father-build 构建的产物存在重复导出问题。
复现步骤
$ npx @umijs/create-dumi-lib
潜在的问题
引用的对象不是同一个,可能导致对象更新操作,不会触发对应更新操作,比如,这里的对象是一个 ReactContext 对象。
The text was updated successfully, but these errors were encountered: