@babel/plugin-syntax-decorators
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -28,6 +28,2 @@ "use strict"; | ||
if (legacy !== true) { | ||
throw new Error("The new decorators proposal is not supported yet." + ' You must pass the `"legacy": true` option to' + " @babel/plugin-syntax-decorators"); | ||
} | ||
const { | ||
@@ -39,3 +35,3 @@ decoratorsBeforeExport | ||
if (!legacy) { | ||
throw new Error("The '@babel/plugin-syntax-decorators' plugin requires a" + " 'decoratorsBeforeExport' option, whose value must be a boolean."); | ||
throw new Error("The '@babel/plugin-syntax-decorators' plugin requires a" + " 'decoratorsBeforeExport' option, whose value must be a boolean." + " If you want to use the legacy decorators semantics, you can set" + " the 'legacy: true' option."); | ||
} | ||
@@ -42,0 +38,0 @@ } else { |
{ | ||
"name": "@babel/plugin-syntax-decorators", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"description": "Allow parsing of decorators", | ||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-decorators", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "lib/index.js", | ||
@@ -8,0 +11,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
3370
43