1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
10 * NOTE: This file does not apply to builds in MC. This config is used for
11 * our Jest tests and for webpack bundle builds.
14 sourceType: "unambiguous",
19 "./packages/*/index.js",
21 /[/\\]node_modules[/\\]devtools-/,
22 /[/\\]node_modules[/\\]react-aria-components[/\\]/,
24 "../shared/worker-utils.js",
27 "@babel/preset-react",
32 browsers: ["last 1 Chrome version", "last 1 Firefox version"],
39 "@babel/plugin-proposal-class-static-block",
40 "@babel/plugin-proposal-class-properties",
41 "@babel/plugin-proposal-optional-chaining",
42 "@babel/plugin-proposal-nullish-coalescing-operator",
43 "@babel/plugin-proposal-private-methods",
44 "@babel/plugin-proposal-private-property-in-object",
45 "@babel/plugin-proposal-unicode-sets-regex",
50 "devtools/client/shared/vendor/react": "react",
51 "devtools/client/shared/vendor/react-dom": "react-dom",
52 "devtools/client/shared/vendor/react-dom-factories":
53 "react-dom-factories",
54 "devtools/client/shared/vendor/react-prop-types": "prop-types",
55 // Map all require("devtools/...") to the real devtools root.
56 "^devtools\\/(.*)": `${__dirname}/../../\\1`,
57 "^resource://devtools/(.*)": `${__dirname}/../../\\1`,
79 test: ["../shared/components"],
81 "@babel/plugin-proposal-class-static-block",
82 "@babel/plugin-proposal-class-properties",
83 "@babel/plugin-proposal-optional-chaining",
84 "@babel/plugin-proposal-nullish-coalescing-operator",
85 "@babel/plugin-proposal-private-methods",
86 "@babel/plugin-proposal-private-property-in-object",
87 "transform-amd-to-commonjs",