Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES Modules #43

Closed
3 tasks done
bajtos opened this issue Feb 13, 2023 · 2 comments
Closed
3 tasks done

ES Modules #43

bajtos opened this issue Feb 13, 2023 · 2 comments
Assignees
Labels
feature New feature or request modules:javascript Things related to writing modules in JavaScript

Comments

@bajtos
Copy link
Member

bajtos commented Feb 13, 2023

At the moment, Zinnia does not support loading code from other files. We should implement support for ES Modules.

Tasks:

@bajtos bajtos added the modules:javascript Things related to writing modules in JavaScript label Feb 13, 2023
bajtos added a commit that referenced this issue Feb 13, 2023
Allow modules to import
https://deno.land/std@0.177.0/testing/asserts.ts

This is a temporary workaround until we implement proper support for
ES modules, see #43.

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
bajtos added a commit that referenced this issue Feb 15, 2023
* feat: vendor `asserts` from Deno stdlib

Allow modules to import
https://deno.land/std@0.177.0/testing/asserts.ts

This is a temporary workaround until we implement proper support for
ES modules, see #43.

* test: add smoke tests for Web APIs

---------

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@bajtos bajtos mentioned this issue Feb 22, 2023
6 tasks
@bajtos
Copy link
Member Author

bajtos commented Mar 6, 2023

This feature has two major parts:

  1. Importing local modules that are part of the project
  2. Consuming 3rd-party dependencies

The latter is tricky. I think it will be best to move it into a follow-up task.

See the discussion in Deno's Q1 Roadmap issue for a glimpse into the complexities involved: denoland/deno#17475

@bajtos
Copy link
Member Author

bajtos commented Mar 20, 2023

Regarding 3rd-party dependencies: Deno is exploring novel approaches in this area. We may want to leverage what they arrive at.

https://deno.com/blog/package-json-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request modules:javascript Things related to writing modules in JavaScript
Projects
Status: ✅ done
Development

No branches or pull requests

1 participant