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

Babel configuration #29

Closed
3 tasks done
arcticicestudio opened this issue Nov 19, 2018 · 0 comments
Closed
3 tasks done

Babel configuration #29

arcticicestudio opened this issue Nov 19, 2018 · 0 comments

Comments

@arcticicestudio
Copy link
Contributor

arcticicestudio commented Nov 19, 2018

Related epics: #25

Gatsby comes with an already optimized Babel configuration to create SSR “static” websites and apps, but there are also use cases that require to modify and extend this configuration to e.g. add a new Babel plugin for the latest syntax feature/proposal support.
Of course Gatsby provides a way through the Node API by implementing the onCreateBabelConfig function.

Nord Docs will make use of the following proposals and plugins:

The plugins and Babel options will be implemented using Gatsby's provided actions setBabelPlugin and setBabelOptions.

Tasks

@arcticicestudio arcticicestudio added this to the 0.1.0 milestone Nov 19, 2018
@arcticicestudio arcticicestudio self-assigned this Nov 19, 2018
arcticicestudio added a commit that referenced this issue Nov 19, 2018
- @babel/plugin-proposal-class-properties (1)
- @babel/plugin-proposal-export-default-from (2)
- @babel/plugin-proposal-nullish-coalescing-operator (3)
- @babel/plugin-proposal-optional-chaining (4)
- babel-plugin-transform-react-remove-prop-types (5)

References:

  (1) https://www.npmjs.com/package/@babel/plugin-proposal-class-properties
  (2) https://www.npmjs.com/package/@babel/plugin-proposal-export-default-from
  (3) https://www.npmjs.com/package/@babel/plugin-proposal-nullish-coalescing-operator
  (4) https://www.npmjs.com/package/@babel/plugin-proposal-optional-chaining
  (5) https://www.npmjs.com/package/babel-plugin-transform-react-remove-prop-types

GH-29
arcticicestudio added a commit that referenced this issue Nov 19, 2018
Configured the installed Babel proposal plugins through Gatsby's Node
API (1) using the provided `setBabelPlugin` action (2).

References:

  (1) https://www.gatsbyjs.org/docs/node-apis
  (2) https://www.gatsbyjs.org/docs/actions

GH-29
arcticicestudio added a commit that referenced this issue Nov 19, 2018
Configured the `babel-plugin-transform-react-remove-prop-types` Babel
plugin (1) to remove all React `propTypes` when building a bundle in
production mode. It is implemented through Gatsby's Node API (1) using
the provided `setBabelOptions` action (3).

References:

  (1) https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types
  (2) https://www.gatsbyjs.org/docs/node-apis
  (3) https://www.gatsbyjs.org/docs/actions

GH-29
arcticicestudio added a commit that referenced this issue Nov 19, 2018
- @babel/plugin-proposal-class-properties (1)
- @babel/plugin-proposal-export-default-from (2)
- @babel/plugin-proposal-nullish-coalescing-operator (3)
- @babel/plugin-proposal-optional-chaining (4)
- babel-plugin-transform-react-remove-prop-types (5)

References:
  (1) https://www.npmjs.com/package/@babel/plugin-proposal-class-properties
  (2) https://www.npmjs.com/package/@babel/plugin-proposal-export-default-from
  (3) https://www.npmjs.com/package/@babel/plugin-proposal-nullish-coalescing-operator
  (4) https://www.npmjs.com/package/@babel/plugin-proposal-optional-chaining
  (5) https://www.npmjs.com/package/babel-plugin-transform-react-remove-prop-types

GH-29
arcticicestudio added a commit that referenced this issue Nov 19, 2018
Configured the installed Babel proposal plugins through Gatsby's Node
API (1) using the provided `setBabelPlugin` action (2).

References:
  (1) https://www.gatsbyjs.org/docs/node-apis
  (2) https://www.gatsbyjs.org/docs/actions

GH-29
arcticicestudio added a commit that referenced this issue Nov 19, 2018
Configured the `babel-plugin-transform-react-remove-prop-types` Babel
plugin (1) to remove all React `propTypes` when building a bundle in
production mode. It is implemented through Gatsby's Node API (1) using
the provided `setBabelOptions` action (3).

References:
  (1) https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types
  (2) https://www.gatsbyjs.org/docs/node-apis
  (3) https://www.gatsbyjs.org/docs/actions

GH-29
arcticicestudio added a commit that referenced this issue Nov 19, 2018
@arcticicestudio arcticicestudio removed their assignment Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant