@ag-grid-community/react
Version:
AG Grid React Component
38 lines (37 loc) • 1.12 kB
JavaScript
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-typescript',
'@babel/preset-react'
],
plugins: [
'@babel/plugin-proposal-class-properties'
],
env: {
dev: {
plugins: [
["@babel/plugin-transform-runtime", {
"regenerator": true
}],
]
},
// place plugins for Cypress tests into "test" environment
// so that production bundle is not instrumented
test: {
plugins: [
// during Cypress tests we want to instrument source code
// to get code coverage from tests
'babel-plugin-istanbul',
'@babel/plugin-proposal-throw-expressions',
// we also want to export ES6 modules as objects
// to allow mocking named imports
[
'@babel/plugin-transform-modules-commonjs',
{
loose: true,
},
],
],
},
},
}