wasmerio / wasmer-pack

MIT License
49 stars 5 forks source link

Import declaration conflicts with local declaration of local types #73

Closed Michael-F-Bryan closed 2 years ago

Michael-F-Bryan commented 2 years ago

It's possible for someone to name their module the same as a type/function that is defined by our templated code, causing duplicate name errors when importing (see https://github.com/wasmerio/vscode-wasm/pull/40#issuecomment-1300606898 for an example).

We should make sure any packages that are imported programmatically use some sort of prefix/namespacing so we avoid naming conflicts.

This is currently blocking https://github.com/wasmerio/vscode-wasm/pull/40 from being merged.