This website requires JavaScript.
Explore
Help
Sign in
foster
/
denoland-deno
Watch
1
Star
0
Fork
You've already forked denoland-deno
0
mirror of
https://github.com/denoland/deno.git
synced
2024-11-30 16:40:57 -05:00
Code
Issues
Packages
1
Wiki
Activity
597f2d8d4d
denoland-deno
/
tests
/
testdata
/
import_attributes
/
json_with_shebang.ts
4 lines
87 B
TypeScript
Raw
Normal View
History
Unescape
Escape
fix: warn about import assertions when using typescript (#25135) 1. On emit, checks for the prescence of import assertions. 1. Warns and doesn't store the parsed source in the emit cache in this case.
2024-08-21 13:12:56 -04:00
import
json
from
"./json_with_shebang.json"
with
{
type
:
"json"
}
;
fix(cli): Don't strip shebangs from modules (#13220) Deno's module loader currently strips a shebang if a module file starts with one. However, this is no longer necessary, since there is a stage-3 TC39 that adds support for shebangs (or "hashbangs") to the language (https://github.com/tc39/proposal-hashbang), and V8, `tsc` and `swc` all support it. Furthermore, stripping shebangs causes a correctness bug with JSON modules, since a JSON file with a shebang should not parse as a JSON module, yet it does with this stripping. This change fixes this.
2022-01-16 10:48:32 -05:00
console
.
log
(
json
)
;
Copy permalink