Skip to content

util 12.2 UMD is treated accidentally as ESM #848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
akirataguchi115 opened this issue Mar 13, 2025 · 0 comments
Open

util 12.2 UMD is treated accidentally as ESM #848

akirataguchi115 opened this issue Mar 13, 2025 · 0 comments

Comments

@akirataguchi115
Copy link
Contributor

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant