Skip to content

Commit

Permalink
feature: babel + transform-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfupeng1988 committed Sep 4, 2020
1 parent fc13d84 commit b36537c
Show file tree
Hide file tree
Showing 4 changed files with 3,446 additions and 252 deletions.
24 changes: 24 additions & 0 deletions .babelrc
@@ -0,0 +1,24 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": "commonjs"
}
]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
[
"@babel/plugin-transform-runtime",
{
"absoluteRuntime": false,
"corejs": 3,
"helpers": true,
"regenerator": true,
"useESModules": false
}
]
]
}
4 changes: 2 additions & 2 deletions build/webpack.common.js
Expand Up @@ -13,8 +13,8 @@ module.exports = {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/,
use: ['babel-loader', 'ts-loader'],
include: /src/,
},
{
test: /\.css$/,
Expand Down

0 comments on commit b36537c

Please sign in to comment.