fix(polyfill): load babel/polyfill if it's not already loaded
This commit is contained in:
parent
dd0084277b
commit
7014e0e07d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hapi-sequelize-crud",
|
"name": "hapi-sequelize-crud",
|
||||||
"version": "2.0.8",
|
"version": "2.0.9",
|
||||||
"description": "Hapi plugin that automatically generates RESTful API for CRUD",
|
"description": "Hapi plugin that automatically generates RESTful API for CRUD",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"config": {
|
"config": {
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
if (!global._babelPolyfill) {
|
||||||
|
require('babel/polyfill');
|
||||||
|
}
|
||||||
|
|
||||||
import crud, { associations } from './crud';
|
import crud, { associations } from './crud';
|
||||||
import url from 'url';
|
import url from 'url';
|
||||||
import qs from 'qs';
|
import qs from 'qs';
|
||||||
|
Loading…
Reference in New Issue
Block a user