Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
fix: include transform-runtime babel plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Mar 7, 2022
1 parent 0503996 commit e6c79a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ gulp.task('typedefs', () => {

const babelOptions = {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: ['@babel/plugin-proposal-class-properties']
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-runtime'
]
};

gulp.task('compile', gulp.parallel('copy',
Expand Down Expand Up @@ -76,7 +79,8 @@ gulp.task('compile', gulp.parallel('copy',
.pipe(babel({
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-flow'],
plugins: [
'@babel/plugin-proposal-class-properties'
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-runtime'
]
}))
.pipe(sourcemaps.write('.'))
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"@alcalzone/release-script-plugin-license": "^3.5.0",
"@babel/core": "^7.16.12",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@babel/preset-flow": "^7.16.7",
"@babel/preset-react": "^7.16.7",
Expand Down

0 comments on commit e6c79a9

Please sign in to comment.