Pauan

Results 1228 comments of Pauan

> The problem is that this has nothing to do with import() but rather with static import. IIFE is run in script contexts (ES5), static `import` is for ES6 modules...

> @lukastaegert Thank you for explaining to me what in your opinion IIFE is all about, having maintained Rollup for 5 years I surely have no idea. You are interpreting...

`async`/`await` is very old, [it works in every browser except for IE](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function#browser_compatibility). Even Microsoft [doesn't support IE anymore](https://docs.microsoft.com/en-us/lifecycle/announcements/internet-explorer-11-support-end-dates) and IE only has 0.61% market share, it's time to let IE...

> What about the possibly less rare situation that users do NOT want to use TLA but want to consume a library that does? In that case the user has...

> So in the end I have the impression we mostly agree now. In general, yes, though if you're going to have a flag I think it should be a...

Yes, that is correct, since `--target web` is [the only target that works with Rollup](https://github.com/wasm-tool/rollup-plugin-rust/issues/7#issuecomment-666136071). Using `target: "es"` in Rollup works fine, and will produce ES6 modules which another bundler...

> Do you have recommendations how to handle this case that the final bundler (who is using my library) copies the webassembly file at the right place with the right...

@BenoitZugmeyer Thanks for the report, and the investigation. FS events are really wacky on OSX in general, so it doesn't surprise me that it's having problems. Let me see if...

Unfortunately top-level await is experimental and [still not supported by Rollup](https://github.com/rollup/rollup/issues/3623). However, it's quite easy for the end-user to use top-level await if they wish: ```js import wasm from "./path/to/Cargo.toml";...

In the long term the goal is to have Wasm completely integrated with ES6 modules, so the user can do this: ```js import { foo, bar } from "./path/to/Cargo.toml"; ```...