|
|
@@ -31,7 +31,7 @@
|
|
|
TextDecoder,
|
|
|
TextEncoder */
|
|
|
|
|
|
-this.singlefile.lib.getClass = this.singlefile.lib.getClass || (() => {
|
|
|
+this.singlefile.lib.SingleFile = this.singlefile.lib.SingleFile || (() => {
|
|
|
|
|
|
const singlefile = this.singlefile;
|
|
|
|
|
|
@@ -57,7 +57,9 @@ this.singlefile.lib.getClass = this.singlefile.lib.getClass || (() => {
|
|
|
};
|
|
|
const SingleFile = singlefile.lib.core.getClass(singlefile.lib.util.getInstance(modules, util), singlefile.lib.vendor.cssTree);
|
|
|
const fetchResource = (singlefile.lib.fetch.content.resources && singlefile.lib.fetch.content.resources.fetch) || fetch;
|
|
|
- return () => SingleFile;
|
|
|
+ return {
|
|
|
+ getClass: () => SingleFile
|
|
|
+ };
|
|
|
|
|
|
async function getResourceContent(resourceURL) {
|
|
|
const resourceContent = await fetchResource(resourceURL);
|