Skip to content

Commit

Permalink
fix: Fixed "decoratorsBeforeExport can't be used with legacy decora…
Browse files Browse the repository at this point in the history
…tors"

Signed-off-by: Jaid <[email protected]>
  • Loading branch information
Jaid committed Sep 12, 2019
1 parent 8881909 commit 44e621f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default (api, options) => {
configBuilder.plugin("aot-loader/babel")
}
configBuilder.plugin("@babel/plugin-proposal-decorators", {
decoratorsBeforeExport: true,
decoratorsBeforeExport: options.legacyDecorators ? undefined : true,
legacy: options.legacyDecorators ? true : undefined,
})
configBuilder.plugin("@babel/plugin-proposal-class-properties", {
Expand Down

0 comments on commit 44e621f

Please sign in to comment.