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 jQuery from 'jquery';
|
||||
|
||||
@ -38,6 +37,8 @@ async function initTestFrame() {
|
||||
return o;
|
||||
};
|
||||
|
||||
// eslint-disable-next-line no-inline-comments
|
||||
const { default: chai } = await import(/* webpackChunkName: "chai" */ 'chai');
|
||||
const assert = chai.assert;
|
||||
/* eslint-enable no-unused-vars */
|
||||
|
||||
|
Reference in New Issue
Block a user