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

feat(build): rework bundling #66

Merged
merged 3 commits into from
Nov 16, 2019
Merged

feat(build): rework bundling #66

merged 3 commits into from
Nov 16, 2019

Conversation

Thomaash
Copy link
Member

BREAKING CHANGE: This removes convert and isMoment exports.

  • Ditch dist dir (better node imports).
  • Use esm/vis-util.js instead of esm.js etc.
  • Provide minified builds for script tags.
  • Add index.js and .d.ts files for shorter imports
    (... from "vis-util/umd"; instead of "vis-util/umd/vis-util").
  • Remove Moment.js:
    • The only thing using Moment was the convert function,
    • which was used solely by Vis Timeline (let's move it there).

PS: Since everything is bundled into single file we have only dev dependencies no peer or runtime dependencies.

BREAKING CHANGE: This removes `convert` and `isMoment` exports.

- Ditch `dist` dir (better node imports).
- Use `esm/vis-util.js` instead of `esm.js` etc.
- Provide minified builds for script tags.
- Add `index.js` and .d.ts files for shorter imports
  (`... from "vis-util/umd";` instead of `"vis-util/umd/vis-util"`).
- Remove Moment.js:
  - The only thing using Moment was the `convert` function,
  - which was used solely by Vis Timeline (let's move it there).
@Thomaash Thomaash requested a review from a team November 16, 2019 20:26
@yotamberk
Copy link
Member

Since: visjs/vis-timeline#190 is merged, this can be added too.

@yotamberk yotamberk merged commit 8a4209f into master Nov 16, 2019
@yotamberk yotamberk deleted the rework-bundling branch November 16, 2019 22:05
@vis-bot
Copy link
Collaborator

vis-bot commented Nov 16, 2019

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants