improve structure & switch to yarn

This commit is contained in:
Rene Haas
2020-09-10 12:16:21 +02:00
parent 43efd22c47
commit 30a5a11862
46 changed files with 9070 additions and 14897 deletions
+28
View File
@@ -0,0 +1,28 @@
module.exports = function (api) {
api.cache.using(() => process.env.NODE_ENV);
if (api.env('build')) {
return {
plugins: ['@babel/plugin-transform-runtime', '@babel/plugin-proposal-class-properties'],
};
}
if (api.env('test')) {
return {
plugins: ['@babel/plugin-transform-modules-commonjs'],
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
'@babel/preset-typescript',
],
};
}
return {};
};