| 1 | module.exports = { |
| 2 | sourceType: "script", |
| 3 | plugins: [require("@foo/babel-plugin-1")], |
| 4 | extends: "./my-extended.js", |
| 5 | overrides: [ |
| 6 | { |
| 7 | test: "src/index.js", |
| 8 | plugins: [["@foo/babel-plugin-2", { noDocumentAll: true }]], |
| 9 | env: { |
| 10 | test: { |
| 11 | plugins: [ |
| 12 | "@foo/babel-plugin-1", |
| 13 | [ |
| 14 | { name: "@foo/inline-babel-plugin-1", visitor: { Program() {} } }, |
| 15 | { noDocumentAll: true }, |
| 16 | ], |
| 17 | ], |
| 18 | }, |
| 19 | }, |
| 20 | }, |
| 21 | { |
| 22 | exclude: "src/index.js", |
| 23 | plugins: ["@foo/babel-plugin-4"], |
| 24 | }, |
| 25 | ], |
| 26 | env: { |
| 27 | test: { |
| 28 | plugins: [ |
| 29 | [ |
| 30 | "@foo/babel-plugin-3", |
| 31 | { noDocumentAll: true }, |
| 32 | "@foo/babel-plugin-three", |
| 33 | ], |
| 34 | ], |
| 35 | }, |
| 36 | development: { |
| 37 | plugins: ["@foo/babel-plugin-4"], |
| 38 | }, |
| 39 | }, |
| 40 | }; |