feat(learn): lazy load chai in frame-runner
This commit is contained in:
@ -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 */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user