Skip to content

Import via esm.sh failure #21

Description

@vasturiano

First of all, thanks for this awesome module!

When I try to import taichi.js in the browser, bundled with esm.sh, as simply as:

<script type="module">
  import * as ti from 'https://esm.sh/taichi.js';
</script>

I get the following error:

Uncaught TypeError: R.platform is not a function
    at taichi.js:16:126746
    at taichi.js:16:133807
    at taichi.js:16:134044
    at taichi.js:16:3206224

Would you happen to know why? I'm not sure if this is an issue on esm.sh or if there's some config that I might need to apply in the bundling to solve the error.

The simplest codepen here:
https://codepen.io/vasturiano/pen/jENJmJG?editors=1001

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions