mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
e7fc29a59f
* feat(jest): create jest config package for unit testing * chore: housekeeping * fix: now we need to explicitly allow importing without extension * fix: recover EditorDriverInterface import * Apply suggestions from code review * chore: yarn Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
27 lines
682 B
JavaScript
27 lines
682 B
JavaScript
module.exports = {
|
|
presets: [
|
|
require.resolve('@babel/preset-react'),
|
|
require.resolve('@babel/preset-typescript'),
|
|
[
|
|
require.resolve('@babel/preset-env'),
|
|
{
|
|
modules: false,
|
|
loose: true,
|
|
},
|
|
],
|
|
],
|
|
plugins: [
|
|
[require.resolve('@babel/plugin-transform-runtime'), { useESModules: true }],
|
|
[require.resolve('@babel/plugin-proposal-class-properties'), { loose: true }],
|
|
[require.resolve('@babel/plugin-proposal-private-methods'), { loose: true }],
|
|
[
|
|
require.resolve('@babel/plugin-transform-react-jsx'),
|
|
{
|
|
pragma: 'm',
|
|
pragmaFrag: "'['",
|
|
useBuiltIns: true,
|
|
},
|
|
],
|
|
],
|
|
};
|