mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 10:09:20 -05:00
1a0cb5b531
When using the `--unstable-detect-cjs` flag or adding `"unstable": ["detect-cjs"]` to a deno.json, it will make a JS file CJS if the closest package.json contains `"type": "commonjs"` and the file is not an ESM module (no TLA, no `import.meta`, no `import`/`export`).
3 lines
187 B
Text
3 lines
187 B
Text
Warning --unstable-detect-cjs is not properly supported in deno compile. The compiled executable may encounter runtime errors.
|
|
Check file:///[WILDLINE]/main.js
|
|
Compile file:///[WILDLINE]
|