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.

webpack - uglifyJs

See original GitHub issue

ERROR in js/main.js from UglifyJs SyntaxError: Unexpected token: name (NotificationsService) [js/main.js:25756,6]

i tried to run it without uglify plugin and i see this:

...
"use strict";
"use strict";
const core_1 = __webpack_require__(0);
const Subject_1 = __webpack_require__(56);
const icons_1 = __webpack_require__(636);
class NotificationsService {
...

Shouldnt the js files published to npm be in es5?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
reprise-devcommented, Dec 19, 2016

Hi @notprathap and @flauc

Thanks so much for your help, I just used the updated npm package and it’s working perfectly!

Great component guys, very useful for our project!

1reaction
notprathapcommented, Dec 26, 2016

Hey, It appears unrelated to this package. May be try upgrading Angular core?

Read more comments on GitHub >

github_iconTop Results From Across the Web

uglifyjs-webpack-plugin - npm
UglifyJS Webpack Plugin. This plugin uses uglify-js to minify your JavaScript. Requirements. This module requires a minimum of Node v6.9.0 ...
Read more >
UglifyJS and webpack v5 - Stack Overflow
We've been using UglifyJS and webpack v4 for our react code, but then just updated to webpack v5. It appears that UglifyJS does...
Read more >
uglifyjs-webpack-plugin - npm.io
UglifyJS Webpack Plugin. This plugin uses uglify-js to minify your JavaScript. Requirements. This module requires a minimum of Node v6.9.0 and Webpack ......
Read more >
UglifyjsWebpackPlugin
This plugin uses UglifyJS v3 ( uglify-es ) to minify your JavaScript. ℹ️ webpack =< v3.0.0 currently contains v0.4.6 of this plugin under...
Read more >
uglifyjs-webpack-plugin examples - CodeSandbox
Learn how to use uglifyjs-webpack-plugin by viewing and forking example apps that make use of uglifyjs-webpack-plugin on CodeSandbox.
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