feat(learn): lazy load chai in frame-runner

This commit is contained in:
Valeriy S
2019-01-15 16:57:20 +03:00
committed by Stuart Taylor
parent 00a1d25fbb
commit 08cfd986c4

View File

@ -1,4 +1,3 @@
import chai from 'chai';
import '@babel/polyfill'; import '@babel/polyfill';
import jQuery from 'jquery'; import jQuery from 'jquery';
@ -38,6 +37,8 @@ async function initTestFrame() {
return o; return o;
}; };
// eslint-disable-next-line no-inline-comments
const { default: chai } = await import(/* webpackChunkName: "chai" */ 'chai');
const assert = chai.assert; const assert = chai.assert;
/* eslint-enable no-unused-vars */ /* eslint-enable no-unused-vars */