-
Notifications
You must be signed in to change notification settings - Fork 906
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support ESM in
react-native.config
(#2453)
* feat: support esm in `react-native.config.js` * tests: add checks to validate is config is properly received * fix: units tests * fix: run each test in fresh environment * test: add proper test scenarios * Update __e2e__/config.test.ts Co-authored-by: Michał Pierzchała <[email protected]> * Update __e2e__/config.test.ts Co-authored-by: Michał Pierzchała <[email protected]> * refactor: create `loadConfigAsync` function --------- Co-authored-by: Michał Pierzchała <[email protected]>
- Loading branch information
1 parent
30b94f8
commit c64bb05
Showing
9 changed files
with
349 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import config from './commands/config'; | ||
|
||
export {default} from './loadConfig'; | ||
export {loadConfigAsync} from './loadConfig'; | ||
|
||
export const commands = [config]; |
Oops, something went wrong.