Skip to content

Commit 0ea4e76

Browse files
committed
PR changes to remove webpack + add ImageBitmap conditional
1 parent 6744569 commit 0ea4e76

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

greenlet.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ export default function greenlet(asyncFunction) {
5959
// The filter is to provide a list of transferables to send zero-copy
6060
worker.postMessage([currentId, args], args.filter(x => (
6161
(x instanceof ArrayBuffer) ||
62-
(x instanceof MessagePort)
62+
(x instanceof MessagePort) ||
63+
(createImageBitmap && x instanceof ImageBitmap)
6364
)));
6465
});
6566
};
66-
}
67+
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"eslint": "^4.16.0",
3939
"eslint-config-developit": "^1.1.1",
4040
"karmatic": "^1.0.6",
41-
"microbundle": "^0.4.3",
42-
"webpack": "^4.29.6"
41+
"microbundle": "^0.4.3"
4342
}
4443
}

0 commit comments

Comments
 (0)