Menci / vite-plugin-top-level-await

Transform code to support top-level await in normal browsers for Vite.
MIT License
273 stars 15 forks source link

ERROR: [vite-plugin-top-level-await] Fallback bindings does not support this interface yet. #24

Closed jhfoo closed 1 year ago

jhfoo commented 1 year ago

Using the latest version of Vite and Vue I get the above trying to use the plugin.

Vue: 3.2.45 Vite: 4.0.0 vite-plugin-top-level-await: 1.2.4

Menci commented 1 year ago

I think it's a SWC issue rather than this plugin.

jhfoo commented 1 year ago

What is swc?

Menci commented 1 year ago

Someone other has asked this question. The error message is in https://github.com/swc-project/swc/blob/f12bfd1e5544a88a81398427df31fa97b513679c/node-swc/src/index.ts#L84, which is in my dependency, not in my code.

I can't investigate how to reproduce it since you provide no details of your environment, your project, etc. I can't do anything for you. Maybe you can ask SWC's developer for it.