Support .mjs
as file extension for es modules
#60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Support
.mjs
as file extension for es modules assuming they have been transpiled properly that is, like webpack does.Example setup: https://github.com/mobxjs/mobx/pull/1131/files
Should solve #59
Beyond that I
Test plan
I have no clue what I am doing, nor do I have any experience with RN so this is just a proposal 😁
Testing can be done by dropping the following to files in
<modules folder>/mjstest
and than in an app use it:
I realize this is the most pathetic attempt of a PR ever. So feel free to close it, but I hope it might have some use as a starting point for support the
.mjs
extension :)