mirror of
https://github.com/wassname/talk.git
synced 2026-08-03 13:20:59 +08:00
29 lines
644 B
JavaScript
29 lines
644 B
JavaScript
/**
|
|
* This is a project wide babel configuration.
|
|
* https://babeljs.io/docs/en/config-files#project-wide-configuration
|
|
*
|
|
* We use this file to apply babel configuration to packages in `node_modules`
|
|
* for testing with jest.
|
|
*/
|
|
const lodashOptimizations = ["use-lodash-es", "lodash"];
|
|
|
|
module.exports = {
|
|
env: {
|
|
production: {
|
|
plugins: [...lodashOptimizations],
|
|
},
|
|
development: {
|
|
plugins: [...lodashOptimizations],
|
|
},
|
|
test: {
|
|
presets: [
|
|
[
|
|
"@babel/env",
|
|
{ targets: "last 2 versions, ie 11", modules: "commonjs" },
|
|
],
|
|
"@babel/react",
|
|
],
|
|
},
|
|
},
|
|
};
|