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

Refactor example to use npm package #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

stefanv
Copy link

@stefanv stefanv commented Sep 15, 2021

I'd have loved to have done this without babel, but this is the only way I know of to make the npm version work.

The refactoring of src/index.js is opinionated: I tend to import implicitly to make the webpack bundles smaller. In the case of BokehJS, this doesn't help all that much at the moment, so a person could also have gone with import * as Bokeh from "@bokeh/bokehjs";.

I'm not a JavaScript/TS expert, so feel free to point me in different directions and I will modify the PR accordingly.

/cc @mattpap

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

Successfully merging this pull request may close these issues.

1 participant