AG & Dev

Results 8 comments of AG & Dev

Thus, as shown above, the module is always imported, but I need to import the module by condition and from self hosting: ``` if (...) { const Globe = import("/globe/globe.gl.umd.js");...

> the target at `/dist/globe.gl.min.js` is already a UMD module, so you could use that. Have you tried `dynamic import` yourself? does it work for you? I have a `dynamic...

I will return to my original request, which is reflected in the title of this issue: ``` Please make variant of Globe.gl for the possibility of dynamic import in the...

If you can help, please make a version of the Globe.gl library that can be imported dynamically from self hosting: ``` const Globe = import("/globe/globe.gl.min.js"); ``` Or add a working...

I tried to repeat your code with the library `globe.gl.min.js`: ``` import("https://unpkg.com/[email protected]/dist/globe.gl.min.js") .then(({ default: Globe }) => { Globe()(document.getElementById('globe')) .globeImageUrl('https://unpkg.com/three-globe/example/img/earth-blue-marble.jpg'); }); ``` The browser gives the same error: ``` Uncaught...

Here is a link to the documentation for the `import()` command, which, among other things, provides examples of dynamic import: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import The documentation does not say anything about the fact...

I independently found a solution for dynamically importing the Globe.gl library without Node.js (NPM) and without package.json . You can close this issue, thanks!

Until there is an official solution to this problem, I am temporarily solving it this way: ```css @import "tailwindcss"; @plugin "daisyui" { /* ... */ exclude: properties; } ```