Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
Readable debugging in Chrome devtool

Is there a way to ensure when debugging for the code to be readable in Chrome browser (or another browser like Edge). For the code to appear the same way as written.

Even when I use pretty print still find it unreadable.

For example a block of code written as follows in IDE:

{provideData() || (!moduleState.provideError && moduleState.provideData) ? (

comes up as follows in Chrome Browser.

enter image description here

Is it possible be it via some browser settings or code configurations to achieve the code to look the same was as it was written in a browser during debugging?

Edit:

The suggested solution uses CRA but my app was not developed using CRA.

Believe the minification is coming from the following within my webpack.config.js file.

  plugins: [
    new CleanWebpackPlugin([paths.out]),
    new webpack.LoaderOptionsPlugin({ minimize: true, debug: false }),
    new UglifyJsPlugin({
      test: /\.jsx?$/i,
      uglifyOptions: {
        beautify: false,
        mangle: { keep_fnames: true },
        compress: {
          dead_code: true,
          drop_console: true,
          drop_debugger: true,
        },
        comments: false,
      },
    }),
    new CompressionPlugin({
      asset: '[path].gz[query]',
      algorithm: 'gzip',
      test: /\.js/,
      threshold: 10240,
      minRatio: 0.8,
    }),
  ],
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The mode should be on 'development'.

Try this in the webpack config:

mode: slsw.lib.webpack.isLocal ? "development": "production",
optimization: {
    minimize: false
}

Also try deleting the bundled file.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda