Skip to content

Commit 59a78be

Browse files
committed
remove scaffolding for animationworklet
animationworklet and layout worklet don't have implementations in any browsers yet so I'll suggest that we add them as a feature once that happens.
1 parent 528a2c3 commit 59a78be

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const defaultConfig = {
1515
webWorkerPattern: /web-worker:(.+)/,
1616
audioWorkletPattern: /audio-worklet:(.+)/,
1717
paintWorkletPattern: /paint-worklet:(.+)/,
18-
// animationWorkletPattern: /animation-worklet:(.+)/,
1918
// serviceWorkerPattern: /service-worker:(.+)/,
2019
inline: true,
2120
forceInline: false,

src/plugin/resolveId.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ function getMatchAndType(importee, config) {
3939
match,
4040
};
4141
}
42-
// match = importee.match(config.animationWorkletPattern);
43-
// if (match) {
44-
// return {
45-
// type: "animation-worklet",
46-
// match
47-
// }
48-
// }
4942
// match = importee.match(config.serviceWorkerPattern);
5043
// if (match) {
5144
// return {

src/utils/buildWorkerCode.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const typeMap = {
99
'web-worker': 'Worker',
1010
'audio-worklet': 'AudioWorklet',
1111
'paint-worklet': 'PaintWorklet',
12-
// 'animation-worklet': 'AnimationWorklet',
1312
// 'service-worker': 'ServiceWorker'
1413
};
1514

0 commit comments

Comments
 (0)