deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

Top level await in log/mod.ts

Open jukefr opened this issue 3 years ago • 0 comments

Describe the bug https://deno.land/[email protected]/log/mod.ts?codeview=#L216 Contains a top level await which when compiled to npm module with dnt will throw a warning unless targeting ESM.

Steps to Reproduce Import std::log and use dnt to compile for node.

Expected behavior

The log library to be able to target node (maybe, not sure if actually a goal)

Environment

  • deno version: 1.23.1
  • std version: 146

jukefr avatar Jul 03 '22 17:07 jukefr