1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 18:42:18 -05:00
denoland-deno/tests/specs/run/import_common_js
Bartek Iwańczuk 794d347ec6
fix: add suggestion how to fix importing CJS module (#21764)
```
$ cat exports_error.js
Object.defineProperty(exports, "__esModule", { value: true });

$ deno exports_error.js
error: Uncaught (in promise) ReferenceError: exports is not defined
Object.defineProperty(exports, "__esModule", { value: true });
                      ^
    at file:///exports_error.js:1:23

    info: Deno doesn't support CommonJS modules without `.cjs` extension.
    hint: Rewrite this module to ESM or change the file extension to `.cjs`.
```
2024-09-05 12:49:07 +00:00
..
node_modules/foo feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
__test__.jsonc fix: add suggestion how to fix importing CJS module (#21764) 2024-09-05 12:49:07 +00:00
a.js feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
exports_error.js fix: add suggestion how to fix importing CJS module (#21764) 2024-09-05 12:49:07 +00:00
exports_error.out fix: add suggestion how to fix importing CJS module (#21764) 2024-09-05 12:49:07 +00:00
index.cjs feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
index.out feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
main.out feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
main.ts feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00
module_error.js fix: add suggestion how to fix importing CJS module (#21764) 2024-09-05 12:49:07 +00:00
module_error.out fix: add suggestion how to fix importing CJS module (#21764) 2024-09-05 12:49:07 +00:00
package.json feat: Allow importing .cjs files (#25426) 2024-09-05 07:59:12 +00:00