More helpful error message for missing decoratorsBeforeExport in parser (#8576)

This commit is contained in:
Nicolò Ribaudo
2018-08-29 16:02:18 +02:00
committed by Brian Ng
parent 04d09cc754
commit 9d244ae66b
2 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
{
"plugins": ["decorators"],
"throws": "The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean."
"throws": "The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'."
}