Skip to content

Commit

Permalink
Fix for decoratorsLegacy in preset-stage-2
Browse files Browse the repository at this point in the history
Intentional breaking change was introduced in beta.45.
More info babel/babel#7786
  • Loading branch information
joncasey committed Apr 23, 2018
1 parent feeb12c commit 1c9ed3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modern-hta.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var transform = transform || function (code) { return code }
if (window.Babel) {
transform = function (code) {
return Babel.transform(code, {
presets: ['es2015', 'es2016', 'es2017', 'stage-0']
presets: ['es2015', 'es2016', 'es2017', ['stage-0', {decoratorsLegacy:true}]]
}).code.replace(/^"use strict";\s+/, '')
}
}
Expand Down

0 comments on commit 1c9ed3d

Please sign in to comment.