Skip to content

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

Merged

Conversation

graingert
Copy link

No description provided.

@graingert
Copy link
Author

Here's the demo: graingert@a6f1261#commitcomment-24111563

"env": {
"test": {
"presets": ["env"]
},
"production": {
Copy link
Author

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);
Copy link
Collaborator

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)?

Copy link
Author

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

Copy link
Collaborator

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.

@deini deini changed the title configure transform runtime for dist Configure transform-runtime for all builds Sep 6, 2017
@@ -7,14 +7,10 @@
}
]
],
"plugins": "transform-runtime",
Copy link
Collaborator

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?

Copy link
Author

@graingert graingert Sep 6, 2017

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 deini merged commit ca5dd3e into angular-redux:master Sep 6, 2017
@graingert graingert deleted the configure-transform-runtime-for-dist branch September 6, 2017 15:16
@graingert
Copy link
Author

@deini any chance of another release? It's also probably worth deprecating 3.5.0 and 3.5.1

@deini
Copy link
Collaborator

deini commented Sep 6, 2017

Need to wait for @AntJanus

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

Successfully merging this pull request may close these issues.

2 participants