fix(polyfill): load babel/polyfill if it's not already loaded

This commit is contained in:
Mahdi Dibaiee 2016-05-11 08:55:32 +04:30
parent dd0084277b
commit 7014e0e07d
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "hapi-sequelize-crud",
"version": "2.0.8",
"version": "2.0.9",
"description": "Hapi plugin that automatically generates RESTful API for CRUD",
"main": "build/index.js",
"config": {

View File

@ -1,3 +1,7 @@
if (!global._babelPolyfill) {
require('babel/polyfill');
}
import crud, { associations } from './crud';
import url from 'url';
import qs from 'qs';