Skip to content

Converting util/fns from CJS to ES module #424

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

Closed
wants to merge 4 commits into from

Conversation

fayyazarshad
Copy link
Contributor

@fayyazarshad fayyazarshad commented Mar 9, 2020

Summary

This activity is part of reducing bundle size, 5to6codemod is used for the automatic transformation but the conversion only include import/export transforms.

Test plan

All unit test and FSC are getting passed

@fayyazarshad fayyazarshad self-assigned this Mar 9, 2020
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.008%) to 97.214% when pulling fe7257a on fayyaz/convert-to-es6-fns into 1e00509 on master.

@coveralls
Copy link

coveralls commented Mar 9, 2020

Coverage Status

Coverage decreased (-0.008%) to 97.214% when pulling 85c8a7d on fayyaz/convert-to-es6-fns into 1e00509 on master.

@fayyazarshad fayyazarshad reopened this Mar 10, 2020
@fayyazarshad fayyazarshad changed the title Convert to es Converting util/fns from CJS to ES module Mar 11, 2020
@@ -7,15 +7,16 @@
"react-native": "lib/index.react_native.js",
"typings": "lib/index.d.ts",
"scripts": {
"test": "mocha ./lib/*.tests.js ./lib/**/*.tests.js ./lib/**/**/*tests.js --recursive --exit --require lib/tests/exit_on_unhandled_rejection.js",
"build": "./node_modules/.bin/babel src --out-dir lib --presets=@babel/env",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need babel? I think we only need a bundler. We can use Rollup, like we do in React SDK.

@fayyazarshad fayyazarshad force-pushed the fayyaz/convert-to-es6-fns branch from 85c8a7d to b9d5122 Compare March 24, 2020 07:02
@mikeproeng37 mikeproeng37 deleted the fayyaz/convert-to-es6-fns branch June 4, 2020 20:56
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.

3 participants