mirror of
https://github.com/gregberge/loadable-components.git
synced 2025-12-08 19:46:26 +00:00
* fix typo #595 * fix: human readable errors * remove babel-plugin-bind * abstract stub creation in tests * apply prettier * decouple async load and require * linting
15 lines
334 B
JavaScript
15 lines
334 B
JavaScript
function getTargets() {
|
|
if (process.env.BUILD_TARGET === 'node') {
|
|
return { node: '8' }
|
|
}
|
|
return undefined
|
|
}
|
|
|
|
module.exports = {
|
|
presets: [
|
|
['@babel/preset-react', { useBuiltIns: true }],
|
|
['@babel/preset-env', { loose: true, targets: getTargets() }],
|
|
],
|
|
plugins: ['@babel/plugin-proposal-class-properties'],
|
|
}
|