-
-
Notifications
You must be signed in to change notification settings - Fork 73
bundle.js isn't in the npm distribution anymore? #235
Comments
Sigh. I missed that one it seems.. Fwiw, if the package.json entry point is set correctly, we shouldn't have to pass the explicit path to unpckg for the default case. I fail to see why we don't just output to a static directory like lib/, dist/, etc. and to a static filename like bundle, bundle.min, bundle.dev -- this whole python-like sub-directory scheme seems pointless and requires bits of code to map folders sprinkled everywhere (python init, webpack config, package.json, etc.). Am I missing the point? |
@chriddyp To be blunt, the preferred setup you are describing makes it hard to make a well-built, clean npm package. |
@Marc-Andre-Rivet - You are welcome to improve the system with a PR to dash and all of the accompanying packages :) |
FWIW, that's why we have a component boilerplate and why we try to standardize on a structure |
The So, since the bundle.js file is already in there, it made sense when I wrote this system (2 years ago!) for the NPM package to just reference the same file, rather than needing to keep another copy of the |
If we want to have multiple bundles (since we need to include it in |
Made more constructive comments and suggestions here: |
The bundles are included in the package folder because we use |
In the latest version, the remote URL for the dash package isn't found:

This URL is specified in the
external_url
key here:dash-table/dash_table/__init__.py
Lines 35 to 37 in 10b8029
Indeed, looking at the package that got uploaded, the

dash_table
folder is no longer there:So, either
dash_table/bundle.js
needs to get put back or theexternal_url
needs to get update to the new directory:https://unpkg.com/[email protected]/lib/bundle.js
Now, it would be good if it was the former, so that we're standard across our libraries and across our dash-component-boilerplate project. That way, changes that we make to the boilerplate, like adding dev and prod versions of the bundle (done here: plotly/dash-component-boilerplate#8), can get easily incorporated into this project (related issue is #228)
cc @Marc-Andre-Rivet and @valentijnnieman
The text was updated successfully, but these errors were encountered: