Skip to content

Commit 36bdd79

Browse files
committed
rename import -> importModule to keep typescript happy, fix name of blob function
1 parent 04c76af commit 36bdd79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension-support/tw-external.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const external = {};
2626
* @template T
2727
* @returns {Promise<T>}
2828
*/
29-
external.import = url => {
29+
external.importModule = url => {
3030
checkURL(url);
3131
// Need to specify webpackIgnore so that webpack compiles this directly to a call to import()
3232
// instead of trying making it try to use the webpack import system.
@@ -65,7 +65,7 @@ external.dataURL = async url => {
6565
* @param {string} url
6666
* @returns {Promise<Blob>}
6767
*/
68-
external.blobURL = async url => {
68+
external.blob = async url => {
6969
const res = await external.fetch(url);
7070
return res.blob();
7171
};

0 commit comments

Comments
 (0)