Bedrock 1.39 pre-release warning: manual updates

Posted on 14 July 2021 at 13:27 by Wolfr_

Babel config

If you upgrade to Bedrock 1.39, you will need to add a file called babel.config.json to the root of your project with the following contents:

{
  "presets": [
    ["@babel/preset-env"]
  ],
  "plugins": [
    ["prismjs", {
        "languages": ["markup", "pug", "jsx"],
        "theme": "ghcolors"
    }]
  ]
}

Please refer to this file for the source.

Key for JSX code samples

Another manual upgrade is in the Bedrock config. Make sure you have an entry for styleguide.codeSamples.jsx (either true or false depending on preference). Please refer to this file for the source.

Updating Bedrock

As a reminder or a hint for new users, you can upgrade an existing Bedrock install by installing the CLI, then running

bedrock upgrade

For the dev version, use:

bedrock upgrade --dev

For the canary version, use:

bedrock upgrade --canary

Why manual file changes?

Some background: Bedrock-CLI only updates changes in the core folder (and a bit of wrangling in package.json).

Any other file changes outside have to be implemented manually.

I could theoretically update Bedrock-CLI to accord to this change, but not enough people are using Bedrock and/or upgrading Bedrock installs to justify coding this.

Leave a Reply

Your email address will not be published. Required fields are marked *