-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
da16b38 to
264427a
Compare
|
@joeldenning do you have any insights as to why |
|
A few questions:
If you're not planning on publishing this under the |
Yes!
Yes. Imports like
|
|
I think I gave you rights to create repositories in esm-bundle, so you should be able to transfer this repo over? Regarding not providing a single bundle for the crocks library - that is different than the other esm-bundles, but I'm okay with it since people use the deeper imports. Does every single file have to be preserved? In that case it might make sense to just run it through babel instead of rollup, since rollup is specifically for concatenation / bundling. Alternatively, there is a CDN that automatically converts any npm package to ESM and System.register format. It just doesn't convert them into bundles. Check it out at https://cdn.jspm.io/npm:crocks@0.12.4/index.dew.js. It's run by Guy Bedford - the downsides are that you can't host it yourself (it's closed source), deploys to it are managed by Guy, and the CDN never does any concatenation / bundling. However, it's a really useful tool and I'd recommend checking it out. If that alternative hasn't already won you over - I'd suggest switching over to babel and using something like https://github.com/prateekbh/babel-esm-plugin to creating the files. The npm script would be this: |
I transferred the repo, but don't have perms to rename it
CDN is less compelling for me, since I want to depend on this package in other libraries This is a webpack plugin, right? if the goal is to transform cjs to esm, rollup can do this with
I don't mind that in principle, but here are some scripts that do work. I think windows users could use WSL in the mean time? SOLVEDTurns out it was PEBCAK and my scripts were broken |
internettrans
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - let's see if the first publish works after this is merged.
|
Publish to npm worked - the files are available at https://unpkg.com/@esm-bundle/crocks@0.12.4/esm/index.js |
|
in order to match with the original package, i think this should only output, not system
|

No description provided.