mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-31 02:13:36 +08:00
This uses the `acorn.mjs` ESM build, rather than side-effect importing it in `formatter_worker.js`. To make sure that Closure still understands what is going on, we add `_types.mjs` files that describe the structure for Closure. To make sure that the unittests still work, Karma can now serve the `*.mjs` files. The unittests have been updated to also no longer side-effect importing acorn. This CL requires https://chromium-review.googlesource.com/c/chromium/src/+/2212124 to land in Chromium first. Bug: 1011811 Change-Id: I33c93b9cfb0c57b1970a98ecaa323481a4e0d1b1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2212165 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>