Skip to content
New issue

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

getLibraryName 支持 library 为 string[] 的解析 #287

Closed
maoxiaoke opened this issue Apr 13, 2021 · 0 comments · Fixed by #288
Closed

getLibraryName 支持 library 为 string[] 的解析 #287

maoxiaoke opened this issue Apr 13, 2021 · 0 comments · Fixed by #288
Labels
discuss supported available in icestark

Comments

@maoxiaoke
Copy link
Collaborator

背景

常见的 umd webpack 的配置方式如下:

output: {
  library: 'micro',
  libraryTarget: 'umd',
}

另外,webpack 还支持 string[] 的设置:

output: {
  library: ['scope', 'micro'],
  libraryTarget: 'umd',
}

详见

icestark 需要支持解析这种导出规范。

使用方式

setLibraryName(['scope', 'microapp']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss supported available in icestark
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant