util 12.2 UMD is treated accidentally as ESM
akirataguchi115 opened this issue · 1 comments
akirataguchi115 commented
The following code produces the following error:
<!DOCTYPE html>
<html>
<body>
<script src="ffmpeg.js"></script>
<script src="ffmpeg-core.js"></script>
<script src="utils.12.1.js"></script>
<script src="utils.12.2.js"></script>
</body>
</html>Uncaught ReferenceError: exports is not defined: [utils.12.2.js:1:728](file:///C:/Users/akira/src/test/utils.12.2.js)
I can only use UMD since my Firefox extension MV2 can only use that. 12.1 index.js seems to load fine but 12.2 doesn't. Is this because of #627 ?
Skyline-23 commented
[Error] ReferenceError: Can't find variable: exports
(anonymous function) (index.js:1:736)
(anonymous function) (index.js:1:2955)
(anonymous function) (index.js:1:199)
Global Code (index.js:1:202)
Also on my safari extension...
#854 I think it's related with this issue