Git Product home page Git Product logo

webpack-template's Introduction

<%= name %>

<%= description %>

Start

npm start

Test

npm test

Build

npm run build

webpack-template's People

Contributors

gianlucaguarini avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

isabella232

webpack-template's Issues

truncated local const\var names with webpack-cli 4.7.2, all good with webpack-cli 3.3.12

I just upgraded my environment to use latest riot 6.0.4 and webpack 5.X
and now I see that debugger truncates last character of local const\var name
it is related to webpack-cli 4.7.2, also reproducible with webpack 4.8.0 -- latest
all works as expected with webpack-cli 3.3.12

steps to reproduce:

  1. take this project
  2. update sidebar.riot method
    toggleUser() {
    const abc = { a: 1 }
    this.update({
    showUser: !this.state.showUser
    })
    }
  3. build with sequence:
    npm install
    npm audit fix
    npm rebuild
    npx webpack
    npm start
  4. browse to http://127.0.0.1:3000,
  5. in debugger, set a breakpoint in toggleUser() method
  6. observe name of the const abc rendered in debugger as "ab"

image

to see expected behavior:
update package.json
in "scripts" section
"start": "webpack-dev-server --inline --watch --hot --colors -d --port 3000"
in "devDependencies" section
"webpack-cli": "^3.3.12",

then build with steps above,
debugger shows constant name as it should
image

Please advise if I'm doing something wrong

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.