Destruction of Require

This commit is contained in:
Cameron 2020-07-21 13:25:50 +01:00
parent 276f4ccb3a
commit 3a23b6e36c
14 changed files with 27 additions and 24 deletions

View file

@ -7,7 +7,7 @@ function alertText(options) {
return new Promise(function (resolve, reject) {
require(['alert'], function (alert) {
import('alert').then(({default: alert}) => {
alert(options).then(resolve, resolve);
});
});