Giter VIP home page Giter VIP logo

Comments (8)

rroylance avatar rroylance commented on May 19, 2024 1

By compiled TypeScript I mean the JS that gets generated. I only got it to show where the issue was in the JS that's generated, not the original TS. I'll merge your update in and see if that satisfies those that need it. Thanks.

from phaser-ce-npm-webpack-typescript-starter-project.

Majirefy avatar Majirefy commented on May 19, 2024

@kolombet
This project doesn't have source map support now.
@rroylance Hope to add it!

from phaser-ce-npm-webpack-typescript-starter-project.

rroylance avatar rroylance commented on May 19, 2024

I'm looking into getting sourcemaps and possibly breakpoints working. Hopefully soon! Thanks.

from phaser-ce-npm-webpack-typescript-starter-project.

rroylance avatar rroylance commented on May 19, 2024

@kolombet @Majirefy I've been able to get it to source map to the individual files, however it maps to the compiled typescript, not the typescript itself... any idea how to get it to map to the typescript, I'm having no luck and searches isn't helping ? The compiled typescript is pretty close to the actual code, so it'd definitely be better than nothing if getting typescript mapping is not possible at the moment.

Let me know if you'd like the current mapping (to the compiled typescript) committed or if you'd rather wait for typescript mapping.

from phaser-ce-npm-webpack-typescript-starter-project.

Nepoxx avatar Nepoxx commented on May 19, 2024

What do you mean the compiled Typescript?

Ideally all you need is an inline-sourcemap in the bundled file.

from phaser-ce-npm-webpack-typescript-starter-project.

Nepoxx avatar Nepoxx commented on May 19, 2024

See #18

The following are instructions to get this working with Visual Studio Code and Chrome. Tested and working on Arch Linux.

  1. Install Debugger For Chrome in VSCode
  2. Launch the dev server npm run server:dev
  3. Launch VSCode's debugger
  4. Enjoy!

Here is my launch.json file which launches a standalone chrome window:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "chrome",
      "request": "launch",
      "name": "Launch Chrome",
      "url": "http://localhost:9000",
      "webRoot": "${workspaceRoot}",
      "userDataDir": "${workspaceRoot}/.vscode/chrome",
      "runtimeExecutable": "/usr/bin/google-chrome-stable"
    },
    {
      "type": "chrome",
      "request": "attach",
      "name": "Attach to Chrome",
      "port": 9222,
      "webRoot": "${workspaceRoot}"
    }
  ]
}

( runtimeExecutable is needed in my case because my executable's name is non-standard, you will likely not need it)

from phaser-ce-npm-webpack-typescript-starter-project.

Nepoxx avatar Nepoxx commented on May 19, 2024

I'll test the workflow on Windows tomorrow and update the readme accordingly :)

from phaser-ce-npm-webpack-typescript-starter-project.

rroylance avatar rroylance commented on May 19, 2024

@Nepoxx Thanks for the help!

from phaser-ce-npm-webpack-typescript-starter-project.

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.