I have a string that I wish to compress in Svelte and to expand later in python. I am have problems importing lzip into Svelte
package.json
"dependencies": {
...
"lzip": "^1.0.10",
...
}
App.Svelte
<script>
import lzip from 'lzip.js';
...
I get the console message:
ReferenceError: lzip is not defined
And in the npm terminal
(!) Missing global variable name
Use output.globals to specify browser global variable names corresponding to external modules
lzip.js (guessing 'lzip')