Closed
Description
💡 Feature description
When you build using the default "bundler" mode, it can almost run directly from nodejs, using nodejs's built in ESM support.
Unfortunately, the created package.json file is missing "type": "module"
. Adding this to the created package.json not only fixes some bundler issues, but also makes nodejs understand the created package too:
foo.js:
import {greet} from 'my_module'
greet()
$ node --experimental-wasm-modules foo.js
(node:414396) ExperimentalWarning: Importing Web Assembly modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Hello world!
Metadata
Metadata
Assignees
Labels
No labels