require Ajv module instead of Ajv compiled file

This commit is contained in:
Andrea Pinazzi 2016-01-21 16:05:49 +01:00
parent 7645c09f94
commit 3201824d39
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
var Ajv;
try {
Ajv = require('ajv/dist/ajv.bundle.js');
Ajv = require('ajv');
}
catch (err) {
// no problem... when we need Ajv we will throw a neat exception