Ensure proper compatibility for our JavaScript in Review Board.

Review Request #12803 — Created Jan. 23, 2023 and submitted

Information

Review Board
release-6.x

Reviewers

package.json has been updated to specify the minimum Node.js version
we require (>= 14.0.0), to avoid any confusing errors when building
static media.

The .babelrc file has been renamed to babel.config.json. This is the
modern filename, and some tools expect it, skipping .babelrc. We also
have the option to make this babel.config.js in the future, letting us
make the file more dynamic, if needed.

We also now define the dedent and django-gettext plugins, which
weren't previously enabled for Rollup-based JavaScript bundles. These
dependencies are provided by @beanbag/frontend-buildkit.

Erased node_modules and re-created it with setup.py develop, which
worked.

Built a package successfully.

Checked various parts of the website (datagrids, admin UI, My Account,
review request pages) without any errors.

Summary ID
Ensure proper compatibility for our JavaScript in Review Board.
`package.json` has been updated to specify the minimum Node.js version we require (>= 14.0.0), to avoid any confusing errors when building static media. The `.babelrc` file has been renamed to `babel.config.json`. This is the modern filename, and some tools expect it, skipping `.babelrc`. We also have the option to make this `babel.config.js` in the future, letting us make the file more dynamic, if needed. We also now define the `dedent` and `django-gettext` plugins, which weren't previously enabled for Rollup-based JavaScript bundles. These dependencies are provided by `@beanbag/frontend-buildkit`.
4c4e199a41e8189c16ef622a875a6b49af44d76e
maubin
  1. Ship It!
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-6.x (e3066fe)