Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

feat: umd name #61

Merged
merged 8 commits into from
Aug 11, 2022
Merged

feat: umd name #61

merged 8 commits into from
Aug 11, 2022

Conversation

xiaohuoni
Copy link
Member

增加 umd.name 配置,用于指定 umd 包的导出 library 名称。如果无配置,默认导出全是 ‘default’

name

  • 类型:string
  • 默认值:default

指定 umd 包的导出 library 名称,例如:

export default {
  umd: {
    name: 'fatherDemo',
  },
};

@codecov
Copy link

codecov bot commented Aug 11, 2022

Codecov Report

Merging #61 (76f48df) into master (3171ea9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #61   +/-   ##
=======================================
  Coverage   95.69%   95.70%           
=======================================
  Files          43       43           
  Lines        1069     1071    +2     
  Branches      235      236    +1     
=======================================
+ Hits         1023     1025    +2     
  Misses         45       45           
  Partials        1        1           
Impacted Files Coverage Δ
src/features/configPlugins/schema.ts 100.00% <ø> (ø)
src/types.ts 100.00% <ø> (ø)
src/builder/bundle/index.ts 87.50% <100.00%> (+1.13%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

docs/config.md Outdated Show resolved Hide resolved
src/features/configPlugins/schema.ts Outdated Show resolved Hide resolved
src/builder/bundle/index.ts Outdated Show resolved Hide resolved
Copy link
Member

@PeachScript PeachScript left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@PeachScript PeachScript merged commit e1bf838 into master Aug 11, 2022
@delete-merged-branch delete-merged-branch bot deleted the feat-umd-name branch August 11, 2022 16:57
@PeachScript PeachScript mentioned this pull request Aug 24, 2022
71 tasks
PeachScript added a commit to umijs/father that referenced this pull request Aug 26, 2022
* feat: umd name

* docs: umd name

* chore: typo

* docs: name default

* docs: tip

* docs: typo

* Update src/builder/bundle/index.ts

Co-authored-by: Peach <[email protected]>

* feat: name optional

Co-authored-by: xiaohuoni <[email protected]>
Co-authored-by: Peach <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants