Add support for rollup.config.mjs and rollup.config.ts files.
Review Request #13510 — Created Jan. 25, 2024 and submitted — Latest diff uploaded
This enhances
RollupCompilerto explicitly look for.mjsand.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.jsonandtsconfig.json) to try to calculate the top of
the tree.
Temporarily changed Review Board to use both
.mjsand.tsfiles,
and verified that the right build configuration was used for each.