forked from cruise-automation/webviz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
19 lines (18 loc) · 791 Bytes
/
Copy pathbabel.config.js
File metadata and controls
19 lines (18 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2018-present, GM Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.
module.exports = {
presets: ["@babel/preset-react", "@babel/preset-flow"],
plugins: [
"@babel/plugin-transform-modules-commonjs",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-syntax-dynamic-import",
["@babel/plugin-proposal-object-rest-spread", { useBuiltIns: true }],
// module-resolver allows us to use absolute import paths
["module-resolver", { root: ["packages"] }],
],
};