Dan Freeman

Results 230 comments of Dan Freeman

A bit of discussion and further examples in Discord: https://discord.com/channels/862108724948500490/1205574011480707082/1205574011480707082

It looks like that module is using CommonJS, which means it won't run in a browser out of the box. You'll probably want to look at using something like [`broccoli-rollup`](https://github.com/chadhietala/broccoli-rollup)...

@knownasilya You could probably use this addon + broccoli-rollup to get things working, though ember-rollup gives a nicer form factor. Ultimately I think https://github.com/ember-cli/rfcs/pull/108 plus the support for importing from...

Hi @ssylvia, > It looks like the library uses UMD: https://github.com/ericelliott/cuid/blob/master/dist/browser-cuid.js#L102. That doesn't actually look like standard UMD to me — I'm not sure what module format that `app.register` call...

Thanks for capturing this! The coming week or so promises to be a little hectic for me, but I'll try to set aside some time over the weekend to write...

So recapping the conversation above, it looks like the two main things `node-modules-to-vendor` has that `node-assets` doesn't are: - the ability to expose all or part of a node package...

Should we be using generated declarations at all? Last I knew `ember-concurrency` was still using a hand-rolled `index.d.ts` and the bulk of the actual implementation was still in JS, so...

I like this idea — it fills a void for folks who for whatever reason can't use `async`/`await` yet, and it provides some nice sugar for spinning off smaller one-off...

Yep, I think treating `['foo-bar']` as equivalent to bare `'foo-bar'` would solve the specific error I was seeing here. 👍