Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
47 views

For angular webpack based builders, how to config the define for tree sharking or compress in the built-in javaScriptOptimizerPlugin ? async function optimizeWithEsbuild(content, name, options) { ...
kaixuan xu's user avatar
0 votes
1 answer
307 views

Since webpack 4 is using terser-webpack-plugin by default in production mode or when we specify -p argument which is a shortcut for specifying --optimize-minimize --define process.env.NODE_ENV="...
Vikram's user avatar
  • 60
0 votes
1 answer
132 views

We are using server side rendering with GraalVM. Application is throwing below error org.graalvm.polyglot.PolyglotException: TypeError: <this>.clearProviders is not a function at <js&...
Vikram's user avatar
  • 60
4 votes
0 answers
357 views

I have a host application that consumes a remote package through a script tag. My remote package includes the following ModuleFederationPlugin config within the webpack config plugins: [ new webpack....
sfletche's user avatar
  • 50.2k
0 votes
1 answer
511 views

I am unable to minify and building code with Terser in Webpack. I get the following error while running my production build: cart-ts.js from Terser plugin "Import" statement may only appear ...
violetflare's user avatar
0 votes
1 answer
277 views

My problem is, I can see my source code in browser even after I use Terser Plugin with Webpack. The problem is, I use Terser Plugin for transforming my code into non human readable code chunks. After ...
Alihan Keskin's user avatar
3 votes
0 answers
629 views

In my next.js app I am using a package called 'js-interpreter', residing in node_modules/js-interpreter, which is a pre-minified package. So, when I create my build with next build it further ...
Usaid Khan's user avatar
1 vote
0 answers
377 views

I'm using webpack for an internal project. The project is set to be minified with TerserPlugin. The project also uses paper js library to deal with some SVG transformations. The issue I have is when I ...
Andrei's user avatar
  • 377
1 vote
2 answers
2k views

I get this error message when i run cross-env NODE_ENV=production webpack --config There is a problem with the terser pluggin, but didn't find anything about this, that could solve my problem. There ...
isidore's user avatar
  • 25
2 votes
0 answers
1k views

I use TerserWebpackPlugin with comments: true. But Terser removes comments after useful code - at the end of file. I would like to avoid this behavior. console.log('Example2'); // any comments will ...
user64667's user avatar
0 votes
1 answer
2k views

I am trying to create a production build with the following configureWebpack but Terser doesnt run during build. Code is not minimized or uglified. Ialso tried hidden-source-map Using "terser-...
Constantinos N's user avatar
5 votes
0 answers
2k views

I've found a number of solutions for excluding particular modules from minification, but all of the solutions I've seen so far not only skip minification of those packages, they cause those packages ...
kshetline's user avatar
  • 14k
1 vote
1 answer
2k views

As of yesterday, I suddenly started getting this error when running the 'npm start' script in my create-react-app. I never had this issue before, and have not changed any configuration or package.json ...
Cancid's user avatar
  • 15
0 votes
1 answer
219 views

The code that Terser produces for my project contains many calls to the Javascript Math object and I am wondering if there is an easy way to minify these calls. Here is a screenshot of part of the ...
Waruyama's user avatar
  • 3,543
1 vote
1 answer
6k views

I just created a Vue 3 project using Vue CLI using the default options, and when I try to run using yarn serve command I got this error Error: Cannot find module '.../node_modules/terser-webpack-...
Alexandre Heinen's user avatar
0 votes
0 answers
235 views

I've to update uglify-webpack-plugin due to server restrictions, so I found terser-webpack-plugin is in the suggestion, however it doesn't support IE11 by default. It just shows a syntax error in the ...
Aniruddha Shevle's user avatar