-
Notifications
You must be signed in to change notification settings - Fork 34
FYI about ESM #2
Comments
@leafac, first of all thank you very much! Pros:
Contra
|
@TomasHubelbauer: 👍 ESM works. Thanks for mentioning it—I’ll add to the README. As far as I understand boxednode wouldn’t work either, because it support only a single file—you have to bundle the application before packaging. Given caxa simple yet powerful architecture of a self-extracting archive, I expect that anything you can do when calling @MichaelKorn: Thank you very much for the feedback! Let me address the contras:
I’ll add an option to let you exclude paths from the build. I’m building on GitHub Actions (see https://github.com/leafac/kill-the-newsletter/blob/94d3185fde30f233759f8a5ee31528a37289a1a3/.github/workflows/main.yml and https://github.com/courselore/courselore/blob/cb1c20c618a41827190c55622d698401e2eaac8f/.github/workflows/main.yml), which does shallow clones, so this wasn’t something I was worried about initially. I’ll get back to you when this ships.
I’ve noticed that too, and I’m working on a few ways to improve on this. First, excluding paths from the build as mentioned above should help speed things up. Also, other compression algorithms should have an impact here. We’ll see… |
@TomasHubelbauer: Thanks for tidying things up here by closing the issue. @MichaelKorn: Version 2.0.0 includes the feature you mentioned of being able to exclude directories from the build. |
Hi! I just read Caxa's readme, haven't tried the project yet, but if I'm not mistaken, I think Caxa might be the only Node packaging system capable of natively supporting ESM and
import.meta
! At least that's what I think based on reading the readme section about how it works.pkg
doesn't: Any future support for ES6 Node application vercel/pkg#439nexe
doesn't: ESM Support nexe/nexe#815boxednode
(https://github.com/mongodb-js/boxednode) I'm not sure, but I remember trying it when I was researching packagers to see which ones support ESM andimport.meta
natively and I have concluded that none do soboxednode
probably doesn't eitherOf course any packer can support ESM and
import.meta
when using a bundler before packing, so here I was only looking at native support.I'm sharing this because I think you might want to add it to the Features section, as another selling point. If Caxa truly does support this, it's amazing news for packing vanilla Node projects using ESM.
The text was updated successfully, but these errors were encountered: