babel.config.js (711B)
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/. */ 4 5 "use strict"; 6 7 module.exports = { 8 plugins: [ 9 "@babel/plugin-proposal-class-properties", 10 "@babel/plugin-proposal-optional-chaining", 11 "@babel/plugin-proposal-nullish-coalescing-operator", 12 "@babel/plugin-proposal-private-methods", 13 "@babel/plugin-transform-modules-commonjs", 14 "babel-plugin-add-module-exports", 15 "transform-amd-to-commonjs", 16 ], 17 presets: [ 18 "@babel/preset-react", 19 [ 20 "@babel/preset-env", 21 { 22 modules: "commonjs", 23 }, 24 ], 25 ], 26 };