diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-10-01 22:21:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 22:21:19 +0200 |
commit | 048c06f84fe78742d6d9e64caa2aadcd212802a5 (patch) | |
tree | d678a4bf1ec7fbde32912d0cbce37eb1947cfb97 /cli/tests/testdata/npm/require_json | |
parent | a6618dc01c890363bdbcc5f689389cbca1e8fb75 (diff) |
fix(npm): handle json files in require (#16125)
Diffstat (limited to 'cli/tests/testdata/npm/require_json')
-rw-r--r-- | cli/tests/testdata/npm/require_json/main.js | 2 | ||||
-rw-r--r-- | cli/tests/testdata/npm/require_json/main.out | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/require_json/main.js b/cli/tests/testdata/npm/require_json/main.js new file mode 100644 index 000000000..d11e85305 --- /dev/null +++ b/cli/tests/testdata/npm/require_json/main.js @@ -0,0 +1,2 @@ +import globals from "npm:globals@13.17.0"; +console.log(globals); diff --git a/cli/tests/testdata/npm/require_json/main.out b/cli/tests/testdata/npm/require_json/main.out new file mode 100644 index 000000000..97db68e1b --- /dev/null +++ b/cli/tests/testdata/npm/require_json/main.out @@ -0,0 +1,3 @@ +[WILDCARD] + devtools: { +[WILDCARD]
\ No newline at end of file |