Add support for rollup.config.mjs and rollup.config.ts files.

Review Request #13510 — Created Jan. 25, 2024 and submitted

Information

Djblets
release-4.x

Reviewers

This enhances RollupCompiler to explicitly look for .mjs and .ts
variants of the Rollup configuration files, and to use the correct
configuration arguments for each file type. This will give projects a
lot more flexibility in how they set up and even split up their Rollup
bundling.

It also checks for other common JavaScript configuration files
(babel.config.json and tsconfig.json) to try to calculate the top of
the tree.

Temporarily changed Review Board to use both .mjs and .ts files,
and verified that the right build configuration was used for each.

Summary ID
Add support for rollup.config.mjs and rollup.config.ts files.
This enhances `RollupCompiler` to explicitly look for `.mjs` and `.ts` variants of the Rollup configuration files, and to use the correct configuration arguments for each file type. This will give projects a lot more flexibility in how they set up and even split up their Rollup bundling. It also checks for other common JavaScript configuration files (`babel.config.json` and `tsconfig.json`) to try to calculate the top of the tree.
e32c44bd3c06d5fdc815c1d1fa1fc347209b64e2
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-4.x (3fc9836)