Giter Site home page Giter Site logo

Comments (10)

telamonian avatar telamonian commented on June 19, 2024

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:

    1. add "inlineSources": true to the tsconfig.json of each package
    2. (my pick) include the src dir with the actual .ts sources in the release of each package
  • 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.

blink1073 avatar blink1073 commented on June 19, 2024

I agree with adding src back to the release.

from lumino.

GordonSmith avatar GordonSmith commented on June 19, 2024

"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.

GordonSmith avatar GordonSmith commented on June 19, 2024

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.

blink1073 avatar blink1073 commented on June 19, 2024

I don't see src in node_modules:

$ ls node_modules/@lumino/coreutils/
.            ..           LICENSE      lib          package.json

from lumino.

GordonSmith avatar GordonSmith commented on June 19, 2024

Its there in the released package: https://cdn.jsdelivr.net/npm/@lumino/[email protected]/package.json

from lumino.

GordonSmith avatar GordonSmith commented on June 19, 2024

...and: https://cdn.jsdelivr.net/npm/@lumino/[email protected]/src/

from lumino.

blink1073 avatar blink1073 commented on June 19, 2024

Looks good yeah, my other folder had 1.4.2.

image

from lumino.

GordonSmith avatar GordonSmith commented on June 19, 2024

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.

GordonSmith avatar GordonSmith commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.