Open MarketingPip opened 5 months ago
Look at the webpack.config.json file for curlconverter.com:
https://github.com/curlconverter/curlconverter.github.io/blob/master/webpack.config.js
@verhovsky - can I suggest that if not imported etc you look for these via script tag in window (if window is defined). Then throw error if not found. (in window & in node modules).
Tho when using the "built" version from "esm.sh" - this error still throws. (Which in the online build - it should also be automatically imported / added to the build).
@verhovsky - just looking over. What about possibly using as dynamic import in browser if not in window? Then if in window use a basic typeof check to validate its the proper WASM files needed?
(just a thought)
I don't understand what you're suggesting.
@verhovsky when using a build from say ESM.sh (cdn). These will / were not resolving properly.
As well - possibly a variable / way to DEFINE the path you want to use for WASM might be ideal. 👌
Can not seem to get things working - do not know if my environment etc? (inside iframe & can not set package.json)
Would be great for proper example of usage via import in browser plus proper build to use.