Skip to content

allow direct access to browser and node implementations#8

Merged
ef4 merged 1 commit intomainfrom
more-exports
Aug 2, 2022
Merged

allow direct access to browser and node implementations#8
ef4 merged 1 commit intomainfrom
more-exports

Conversation

@ef4
Copy link
Copy Markdown
Contributor

@ef4 ef4 commented Aug 2, 2022

By default, consumers will get either the node or browser implementation automatically based on their environment.

Since these implementations support slightly different options, consumers that want to be portable themselves may want to pick one implementation (probably the browser one, since it is the more portable) and stick to it, regardless of their own environment.

This change enables that by allowing direct imports of babel-plugin-ember-template-compilation/browser and babel-plugin-ember-template-compilation/node, both of which bypass the automatic environment switching.

By default, consumers will get either the node or browser implementation automatically based on their environment.

Since these implementations support slightly different options, consumers that want to be portable themselves may want to pick one implementation (probably the browser one, since it is the more portable) and stick to it, regardless of their own environment.

This change enables that by allowing direct imports of `babel-plugin-ember-template-compilation/browser` and `babel-plugin-ember-template-compilation/node`, both of which bypass the automatic environment switching.
@ef4 ef4 added the enhancement New feature or request label Aug 2, 2022
@ef4 ef4 merged commit 7adbf36 into main Aug 2, 2022
@ef4 ef4 deleted the more-exports branch August 2, 2022 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant