jameslan / libxml2-wasm

WebAssembly-based libxml2 javascript wrapper
https://jameslan.github.io/libxml2-wasm/
MIT License
10 stars 2 forks source link

fix: use the file suffix when importing with relative paths (#18) #20

Closed jameslan closed 4 months ago

jameslan commented 4 months ago

In my project Node complains: "Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'." Since other relative imports use the suffix, I thought it would help to import libxml2raw also with the suffix.

(cherry picked from commit 9f0afa32cf82a30ce4198ac13a73e3934cfc6fd9)