拿掉 build files

This commit is contained in:
2022-07-18 16:33:23 +08:00
parent 41e2287bcb
commit 3707f158a3
31953 changed files with 0 additions and 4411796 deletions
-22
View File
@@ -1,22 +0,0 @@
import {errorMessage, isFunction, loadResources} from './utils';
import type {Loader, LoaderCallback} from '.';
const loader: Loader = function (source) {
this.cacheable();
const callback = this.async();
if (!isFunction<LoaderCallback>(callback)) {
throw new Error(errorMessage.syncCompilation);
}
/* istanbul ignore if: not possible to test */
if (typeof source !== 'string') {
throw new Error(errorMessage.impossible);
}
void loadResources(this, source, callback);
};
export default loader;