Fix small typo with decorators legacy option [skip ci] (#7762)

This commit is contained in:
Brian Ng 2018-04-19 20:26:54 -05:00 committed by GitHub
parent 339dfddca5
commit e45b58dcb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ export default declare((api, options) => {
if (legacy !== true) {
throw new Error(
"The new decorators proposal is not supported yet." +
' You muse pass the `"legacy": true` option to' +
' You must pass the `"legacy": true` option to' +
" @babel/plugin-proposal-decorators",
);
}

View File

@ -25,7 +25,7 @@ export default declare((api, opts = {}) => {
if (decoratorsLegacy !== true) {
throw new Error(
"The new decorators proposal is not supported yet." +
' You muse pass the `"decoratorsLegacy": true` option to' +
' You must pass the `"decoratorsLegacy": true` option to' +
" @babel/preset-stage-0",
);
}

View File

@ -30,7 +30,7 @@ export default declare((api, opts = {}) => {
if (decoratorsLegacy !== true) {
throw new Error(
"The new decorators proposal is not supported yet." +
' You muse pass the `"decoratorsLegacy": true` option to' +
' You must pass the `"decoratorsLegacy": true` option to' +
" @babel/preset-stage-1",
);
}

View File

@ -29,7 +29,7 @@ export default declare((api, opts = {}) => {
if (decoratorsLegacy !== true) {
throw new Error(
"The new decorators proposal is not supported yet." +
' You muse pass the `"decoratorsLegacy": true` option to' +
' You must pass the `"decoratorsLegacy": true` option to' +
" @babel/preset-stage-2",
);
}