question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

We’re using the latest package in a project and during the uglify build step, UglifyJS crashes because of index.js. Seems that built index.js still has let instead of var.

Specifically this line in index.js is causing the error:

    let tokens = state.tokens;

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
arve0commented, Sep 12, 2017

@zmiKaminski You can use the browser build like this:

var attrs = require('markdown-it-attrs/markdown-it-attrs.browser.js')

The browser build does not contain any ES2015.

0reactions
zmiKaminskicommented, Sep 12, 2017

@zentuit I am experiencing this same error as you but with markdown-it-attrs 1.0.1 & 1.1.0 using uglify-js 3.1.0. Perhaps you can tell me what version combination is working for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

crash on uglify · Issue #9 · ionutvmi/uglifyjs-folder - GitHub
Hi, I was already used uglify version 1.2.0 without error, but it started crashing. I don´t know why. Tested on Windows 10 64bit, ......
Read more >
uglifyjs - hangs when run with any options - Super User
Running uglifyjs with --verbose. Nothing is output. Running uglifyjs on files directly in my current directory (no change). javascript.
Read more >
Why pushing object to array causes Gulp Uglify to crash
I have gulpfile which is supposed to minify my js files normally. I have one function, which runs each loop having following line:...
Read more >
uglifyjs-webpack-plugin | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Regular Expression Denial of Service (ReDoS) in uglify-js | Snyk
Regular Expression Denial of Service (ReDoS) Affecting uglify-js package, ... to crash or take a disproportional amount of time to process.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found