671 B
671 B
Build
As of March 2025, the build process is a little different from the jupyterlab extension cookiecutter template. The build works as follows:
labextension
- esbuild produces a bundle in
dist/esmwithsrc/index.jsas its entrypoint jupyter labextension buildpackages that bundle, which is read from themainfield inpackage.json, intodist/cjs- the
dist/cjsoutput is copied to the perspective-python package's.datadirectory.
This means running jupyter labextension build or watch out-of-band from the
build script won't rebuild the labextension on its own; the labextension step
runs on the output of the esbuild step.