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

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

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
Review request changed

Change Summary:

Fixed logic that skipped too early and failed to traverse up at the right time.

Commits:

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.
5addebc6300255d21b4cc532d553494586b3acc4
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

Diff:

Revision 2 (+104 -28)

Show changes

Checks run (2 succeeded)

flake8 passed.
JSHint passed.
david
  1. Ship It!
  2. 
      
Loading...