Skip to content

Commit

Permalink
fix(browser): upgrade babel to v7 to work around an issue with `exten…
Browse files Browse the repository at this point in the history
…ds Error`

Fix #9273
  • Loading branch information
vkarpov15 committed Jul 27, 2020
1 parent 8cbaf0a commit 2a3d9fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions lib/error/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

'use strict';

const MongooseError = require('./');
const MongooseError = require('./mongooseError');
const util = require('util');


class ValidationError extends MongooseError {
/**
* Document Validation Error
Expand Down Expand Up @@ -108,4 +107,4 @@ function _generateMessage(err) {
* Module exports
*/

module.exports = exports = ValidationError;
module.exports = ValidationError;
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
"sift": "7.0.1"
},
"devDependencies": {
"@babel/core": "7.10.5",
"@babel/preset-env": "7.10.4",
"acquit": "1.x",
"acquit-ignore": "0.1.x",
"acquit-require": "0.1.x",
"async": "2.6.2",
"babel-loader": "7.1.4",
"babel-preset-es2015": "6.24.1",
"babel-loader": "8.1.0",
"benchmark": "2.1.4",
"bluebird": "3.5.5",
"chalk": "2.4.2",
Expand All @@ -62,7 +63,7 @@
"uuid": "2.0.3",
"uuid-parse": "1.0.0",
"validator": "10.8.0",
"webpack": "4.16.4"
"webpack": "4.44.0"
},
"directories": {
"lib": "./lib/mongoose"
Expand Down
2 changes: 1 addition & 1 deletion webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
],
loader: 'babel-loader',
options: {
presets: ['es2015']
presets: ['@babel/preset-env']
}
}
]
Expand Down

0 comments on commit 2a3d9fd

Please sign in to comment.