-
Notifications
You must be signed in to change notification settings - Fork 177
Configure transform-runtime for all builds #162
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
Configure transform-runtime for all builds #162
Conversation
Here's the demo: graingert@a6f1261#commitcomment-24111563 |
"env": { | ||
"test": { | ||
"presets": ["env"] | ||
}, | ||
"production": { |
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.
this "production" config was not being used.
'lodash.map', | ||
'redux', | ||
]; | ||
config.external = id => RegExp(`^(${externals})(\/.*)?$`).test(id); |
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.
Is there any reason this is not just config.external = Object.keys(dependencies)
?
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.
because then it would not externalize package/foo
https://rollupjs.org/#peer-dependencies
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.
Ahh gotcha, that makes sense.
@@ -7,14 +7,10 @@ | |||
} | |||
] | |||
], | |||
"plugins": "transform-runtime", |
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 this be an array?
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.
@deini it can be an array or a string (eg if you only have one plugin). Happy to change it to an array.
@deini any chance of another release? It's also probably worth deprecating 3.5.0 and 3.5.1 |
Need to wait for @AntJanus |
No description provided.