Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Don't fail building when there is .babelrc file.#562

Open
PatrykF3D wants to merge 2 commits intoinsin:masterfrom
forward3d:feature/component/allow-custom-babel-config
Open

Don't fail building when there is .babelrc file.#562
PatrykF3D wants to merge 2 commits intoinsin:masterfrom
forward3d:feature/component/allow-custom-babel-config

Conversation

@PatrykF3D
Copy link
Copy Markdown

@PatrykF3D PatrykF3D commented Oct 20, 2020

Instead, use .babelrc.build for the temporary config.
Babel CLI v7 allows for --config-file option with which you can specify
your own config file. Thanks to that, if there is already .babelrc file
in the repo, the build can still continue instead of being stopped.

ref: https://babeljs.io/docs/en/babel-cli#custom-config-path

Using babel configuration in nwb.config.js does not pass the specified presets/plugins etc to the demo server.

Note: opened against master because it is ahead of the next branch.

Instead, use .babelrc.build for the temporary config.
Babel CLI v7 allows for --config-file option with which you can specify
your own config file. Thanks to that, if there is already .babelrc file
in the repo, the build can still continue instead of being stopped.

ref: https://babeljs.io/docs/en/babel-cli#custom-config-path
@PatrykF3D PatrykF3D changed the base branch from next to master October 20, 2020 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant