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

考不考虑支持rollup?浏览器环境下需要bundle #2

Closed
hardfist opened this issue Jul 31, 2019 · 3 comments
Closed

考不考虑支持rollup?浏览器环境下需要bundle #2

hardfist opened this issue Jul 31, 2019 · 3 comments

Comments

@hardfist
Copy link

No description provided.

@jaywcjlove
Copy link
Owner

@hardfist 未来会考虑

@jaywcjlove
Copy link
Owner

@hardfist 目前使用 babel 实现的比较不好

"umd": {
"presets": [
"@tsbb/babel-preset-tsbb",
"@babel/preset-react"
],
"plugins": [
[
"babel-plugin-transform-remove-imports",
{
"test": "(less|css)$"
}
],
[
"@babel/plugin-transform-modules-umd",
{
"exactGlobals": true
}
]
]
}

jaywcjlove added a commit that referenced this issue Nov 30, 2019
* Add default babel preset.

* Remove the package-lock.json in the example.
@jaywcjlove
Copy link
Owner

#120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants