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

Checked in built UMD bundles out-of-date with source code #498

Closed
mightyiam opened this issue Dec 12, 2019 · 10 comments · Fixed by #549
Closed

Checked in built UMD bundles out-of-date with source code #498

mightyiam opened this issue Dec 12, 2019 · 10 comments · Fixed by #549

Comments

mightyiam added a commit that referenced this issue Dec 20, 2019
The standalone UMD bundles provided in the npm package under `dist` will
no longer be updated. They are already several commits behind. See issue

Closes #498. Closes #514.
mightyiam added a commit that referenced this issue Dec 20, 2019
The standalone UMD bundles provided in the npm package under `dist` will
no longer be updated. They are already several commits behind. See issue

Closes #498. Closes #514. Closes #481.
@mightyiam mightyiam pinned this issue Dec 20, 2019
mightyiam added a commit that referenced this issue Jan 7, 2020
The standalone UMD bundles provided in the npm package under `dist` will
no longer be updated. They are already several commits behind. See issue

Closes #498. Closes #514. Closes #481.
mightyiam added a commit that referenced this issue Jan 7, 2020
The standalone UMD bundles provided in the npm package under `dist` will
no longer be updated. They are already several commits behind. See issue

Closes #498. Closes #514. Closes #481.
mightyiam added a commit that referenced this issue Jan 15, 2020
The standalone UMD bundles provided in the npm package under `dist` will
no longer be updated. They are already several commits behind. See issue

Closes #498. Closes #514. Closes #481.
mightyiam added a commit that referenced this issue Jan 16, 2020
BREAKING CHANGE: UMD bundles are no longer provided.

Closes #498. Closes #514. Closes #481.
mightyiam added a commit that referenced this issue Jan 16, 2020
BREAKING CHANGE: UMD bundles are no longer provided.

Closes #498. Closes #514. Closes #481.
mightyiam added a commit that referenced this issue Jan 22, 2020
BREAKING CHANGE: UMD bundles are no longer provided.

Closes #498. Closes #514. Closes #481.
@cowpig
Copy link

cowpig commented Jan 24, 2020

Hey @mightyiam -- I'm trying to use unpkg to import snabbdom in a project with no build step. However, after adding:

import { init } from "https://unpkg.com/snabbdom"
import { h } from "https://unpkg.com/snabbdom/h"

It looks like my browser is fetching source files that are not compiled. Accessing those files in my browser directly confirms they're raw source files.

Looks like Unpkg expects a UMD build -- is this issue the cause? Because I would expect them to be old, but still compiled, files.

@mightyiam
Copy link
Contributor Author

@cowpig
Copy link

cowpig commented Jan 26, 2020

Ah, thank you!!

@mightyiam
Copy link
Contributor Author

So, we have at least one user UMD user who went as far as commenting on an issue. Since it seems that bundling as UMD provides additional value through unpkg, I feel that we should provide that. I'll make a PR. I'm looking into bundling with webpack.

@kuraga
Copy link

kuraga commented Jan 26, 2020

But let's merge #553 anyway...

@mightyiam
Copy link
Contributor Author

@kuraga I wouldn't like to do that, be cause it would seem to me like a regression and also a commit with a breaking change log entry. But I will use that commit in the PR that introduces UMD bundling with webpack.

@kuraga
Copy link

kuraga commented Jan 27, 2020

@mightyiam I meant "let's untrack /dist directory from VCS" anyway...

@mightyiam
Copy link
Contributor Author

I would like to do that, indeed. But here is a user with a use case. Is there a reasonable alternative to unpkg?

For some of the use cases, I just created a template on CodeSandbox. Perhaps we could link there in the readme.

But the exact functionality that we're looking for is something like unpkg but that does not require UMD bundles. It can create such bundles itself. Oh, I just found one. How about this:

https://bundle.run/[email protected]/es/snabbdom.js

@cowpig, could you please help us out here? If you could try out the above bundle.run service for your app and tell us whether that works out for you?

@kuraga
Copy link

kuraga commented Jan 27, 2020

@mightyiam ,

but that does not require UMD bundles

So do you propose to not have UMD bundles even in NPM package? Or the same but not only for UMD bundles?

@mightyiam
Copy link
Contributor Author

@kuraga if bundle.run serves the same purpose while we don't have to make UMD bundles, I'd be happy to not provide them.

@mightyiam mightyiam unpinned this issue Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants