diff --git a/src/index.js b/src/index.js index 09a5c40cbe..d8e41d389a 100755 --- a/src/index.js +++ b/src/index.js @@ -62,6 +62,10 @@ function getParserClass(pluginsFromOptions: $ReadOnlyArray): Class= 0 && pluginList.indexOf("decorators-stage-2") >= 0) { + throw new Error("Cannot use decorators and decorators-stage-2 plugin together"); + } + const key = pluginList.join("/"); let cls = parserClassCache[key]; if (!cls) {