wagerfield / nuxt-typescript

TypeScript module for Nuxt
MIT License
90 stars 11 forks source link

Chrome Debugging - No Sourcemap? #20

Open theoribeiro opened 5 years ago

theoribeiro commented 5 years ago

Hi, I've set sourceMap: true on tsconfig.json but for some reason I believe Nuxt is not creating the sourcemap to allow Webstorm to set breakpoints.

Has anyone run into any problem of this kind?

makamekm commented 5 years ago

Hi. To make it work add this:

  build: {
    extend(config, { isClient }) {
      if (isClient) {
        config.devtool = '#source-map';
      }
    },
shainegordon commented 4 years ago

having the exact same problem.

my .vue pages that I haven't converted to typescript are visible in chrome in source maps, but no typescript