Comments (10)
I've researched this and the related issues extensively. This will require two things:
-
include the ts sources in the released
@lumino
packages. Can be done in one of two ways:- add
"inlineSources": true
to thetsconfig.json
of each package - (my pick) include the
src
dir with the actual.ts
sources in the release of each package
- add
-
tweak the jlab webpack build to include the sourcemaps produced by
tsc
for the@lumino
packages-
change this line to something like
include: [...sourceMapRes, '@lumino'],
-
from lumino.
I agree with adding src
back to the release.
from lumino.
"src" is already included in the packages (I didn't think it got removed?): https://github.com/jupyterlab/lumino/blob/master/packages/widgets/package.json#L23
https://cdn.jsdelivr.net/npm/@lumino/widgets/
Unless I missed some by mistake?
from lumino.
Also if you look in the map files you should see that the bundled versions map back to the ts files in question: https://cdn.jsdelivr.net/npm/@lumino/[email protected]/dist/index.js.map
from lumino.
I don't see src
in node_modules
:
$ ls node_modules/@lumino/coreutils/
. .. LICENSE lib package.json
from lumino.
Its there in the released package: https://cdn.jsdelivr.net/npm/@lumino/[email protected]/package.json
from lumino.
...and: https://cdn.jsdelivr.net/npm/@lumino/[email protected]/src/
from lumino.
Looks good yeah, my other folder had 1.4.2.
from lumino.
If your using WebPack to build your project and your including JS files which in turn already have a source map associated with them (like from TS) then you should be using source-map-loader
.
Example here: https://github.com/GordonSmith/HPCC-Platform/blob/eclwatch-8.x/esp/src/webpack.config.js#L95-L99
from lumino.
You might need to change the "devTool" for non production builds as well: https://github.com/GordonSmith/HPCC-Platform/blob/eclwatch-8.x/esp/src/webpack.config.js#L111 (not 100% sure)
from lumino.
Related Issues (20)
- macOS: Emoji used for "enter" in pulldown menu keyboard shortcuts HOT 1
- Duplicate HOT 2
- Duplicate
- [DataGrid] double-clicking cells to edit them is flakey HOT 11
- The `Title.changed` signal could emit some detail about the change
- Should commands receive an event that triggered them? HOT 2
- Deprecation in 1.x without fix HOT 2
- Allow a custom label for menu items, overriding the command name HOT 2
- Dock panels with reusable splits HOT 2
- Reuse the plugin system without depending on the Lumino Widgets HOT 3
- Drag image is rendered off-screen HOT 3
- MenuBar example is currently broken HOT 5
- Conditional Lumino plugin load HOT 3
- Focus tracker does not focus on tab item HOT 2
- Karma is deprecated we should move on HOT 4
- Auto tab activation
- Tab title edition in Firefox has bugs
- `Tab` and `Shift+Tab` are moving the focus in strange way in `DockPanel`
- Automate link to ReadTheDocs PR preview
- How to persistence SplitPanel and DockPanel? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lumino.