mozilla / mozjexl

Javascript Expression Language: Powerful context-based expression parser and evaluator
Other
52 stars 5 forks source link

Define a process for building a mozjexl blob for Firefox #21

Closed glasserc closed 2 years ago

glasserc commented 5 years ago

Firefox has (at toolkit/components/utils/mozjexl.js) a vendored version of this library available as compiled output. The original process which produced this vendored version is gone now and there isn't anything in place to replace it. It would be good to have a mechanism in this repository to build a mozjexl.js so that we could update it when there is a new release.

Per discussion with @mythmon via IRC, the historic process for building the mozjexl output is visible in https://github.com/mozilla/normandy/blob/43f0ce22ec1cb73a061f95236aa9b79ff7fb8410/recipe-client-addon/webpack.config.js, but it is likely to have bit-rotted.

Refs https://bugzilla.mozilla.org/show_bug.cgi?id=1520362, which represents an approach to solving the problem from within the mozilla-central repository, which is probably the better strategy long-term but more work.

At the moment, there's no pressing need for this (or for the mozilla-central) approach, but eventually we'll need one or the other.