Skip to content
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

Sets babel compact option to false is development #1806

Merged
merged 2 commits into from
Jan 9, 2020

Conversation

belcherj
Copy link
Contributor

@belcherj belcherj commented Jan 3, 2020

Fix

Babel was outputting warnings about lodash and react-dom that it wasn't
removing white space. This sets babel compact to false in order to stop those
warnings. We also don't need babel to compact in development.
https://babeljs.io/docs/en/options#compact

Test

Does the app build from npm run dev?

Review

Only one developer is required to review these changes, but anyone can perform the review.

Release

RELEASE-NOTES.txt was updated with:

  • Fixed build warning #1806

@@ -18,6 +18,9 @@ module.exports = function(api) {
'@babel/plugin-syntax-dynamic-import',
];
const env = {
development: {
compact: false,
},
test: {
plugins: ['dynamic-import-node'],
Copy link
Member

Choose a reason for hiding this comment

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

should it be here too?

what if we turned it off but added it in production? is there any place other than production to turn it on?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My feeling is that we should run the tests on compact.

Babel was outputting warnings about lodash and react-dom that it wasn't
removing white space. This sets babel compact to false in order to stop those
warnings. We also don't need babel to compact in development.
https://babeljs.io/docs/en/options#compact
@belcherj belcherj force-pushed the update/dev-compact-false branch from 9f689be to d44995d Compare January 9, 2020 15:37
@belcherj belcherj merged commit e2cf888 into develop Jan 9, 2020
@belcherj belcherj deleted the update/dev-compact-false branch January 9, 2020 15:37
@codebykat codebykat added this to the 1.14 milestone Dec 23, 2020
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