Skip to content

Support for Deno #110

@binyamin

Description

@binyamin

Note: Coming from parcel-bundler/lightningcss#219

I haven't been able to get this module working for Deno

  • The source uses typescript syntax (import type) with a .js extension. Deno can't read it properly
  • The NPM package uses CommonJS (require), but Deno uses ESM (import)
  • CDNs
    • unpkg.com pulls from NPM, so we get the same issue.
    • esm.sh & skypack.dev both transform the CommonJS to ESM. Unfortunately, they don't serve WASM files with the right content-type, so Deno can't process it normally. The way Deno does process it, it throws an error during compilation. Something about a mismatched "magic word".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions