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
[preset-env] Exclude transform-typeof-symbol with loose
option.
#6831
Conversation
You mean loose in the title |
Omg, I need to sleep |
spec
option.loose
option.
@@ -111,12 +111,25 @@ const getPlatformSpecificDefaultFor = (targets: Targets): ?Array<string> => { | |||
return isAnyTarget || isWebTarget ? defaultWebIncludes : null; | |||
}; | |||
|
|||
const getOptionSpecificExcludesFor = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move this into ./default-includes.js
and maybe rename it defaults.js
?
Another option it to just move filterItems (since its pretty self contained) alongside both of them?
Not critical, there's just so much going on in index.
EDIT: let's do this in a followup, if anything.
Like @hzoo mentioned in #6822, we have enough reasons to do so, and this will simplify configs for many projects. I have found several examples, where people mix
exclude: ['transform-runtime']
andloose: true
options: