-
Notifications
You must be signed in to change notification settings - Fork 36
Open
guest271314/js-untar
#1Description
Overview
The UMD wrapper js-untar currently in use may cause an error in certain circumstances.
Steps to Reproduce:
<script type="module">
import '/node_modules/jquery/dist/jquery.min.js';/* global jQuery */
import '/node_modules/pako/dist/pako_inflate.min.js';/* global pako */
import '/node_modules/js-untar/build/dist/untar.js';/* global untar */
//...
</script>jquery and pako are okay with native ESM loader, while js-untar will throw an error
TypeError: Cannot set property 'untar' of undefined
Possible Solution:
Use a more versatile variant of UMD, e.g. returnExportsGlobal.js
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels