Skip to content

Commit 99013dc

Browse files
committed
Move widget bundle to package_data
1 parent a80250d commit 99013dc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ doc/check-or-enforce-order.py
5959
packages/javascript/jupyterlab-plotly/lib/
6060
packages/python/plotly/jupyterlab_plotly/labextension/
6161
packages/python/plotly/jupyterlab_plotly/nbextension/index.js*
62-
packages/python/plotly/plotly/bundle.js
62+
packages/python/plotly/plotly/widgetbundle.js
6363

6464
test/percy/*.html
6565
test/percy/pandas2/*.html

packages/python/plotly/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ include README.md
33
include jupyterlab-plotly.json
44
include versioneer.py
55
include plotly/_version.py
6-
include plotly/bundle.js
6+
include plotly/package_data/widgetbundle.js

packages/python/plotly/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"scripts": {
3-
"build": "esbuild --bundle --alias:plotly.js=plotly.js/dist/plotly --format=esm --minify --outfile=../plotly/bundle.js widget.ts",
3+
"build": "esbuild --bundle --alias:plotly.js=plotly.js/dist/plotly --format=esm --minify --outfile=../plotly/package_data/widgetbundle.js widget.ts",
44
"watch": "npm run build -- --watch --sourcemap=inline",
55
"typecheck": "tsc --noEmit"
66
},

packages/python/plotly/plotly/basewidget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BaseFigureWidget(BaseFigure, anywidget.AnyWidget):
1515
subclass
1616
"""
1717

18-
_esm = pathlib.Path(__file__).parent / "bundle.js"
18+
_esm = pathlib.Path(__file__).parent / "package_data" / "widgetbundle.js"
1919

2020
# ### _data and _layout ###
2121
# These properties store the current state of the traces and

0 commit comments

Comments
 (0)