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.

How do I not use the debug version?

See original GitHub issue

Hiya folks! I’m using webpack-bundle-analyzer to inspect my bundle’s dependencies and noticed that esri-leaflet-debug.js is one of the largest. I tried running webpack with NODE_ENV=production to see if there was a flag that made a difference, but it’s still there. Any idea how to not use the debug version? (I assume the non-debug version is smaller).

screen shot 2018-04-09 at 6 38 45 pm

I’m importing it this way:

import { tiledMapLayer as EsriTileLayer } from 'esri-leaflet'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
timwiscommented, Aug 2, 2018

Sure, I think if you clicked the commits linked above it should show you the exact changes I used. To be honest it was a few months ago and I don’t remember. It may be worth cloning my Repository and using that bundle inspect tool to see if the leaflet dependency is actually smaller (use the v2 branch not master). Can’t remember if I figured it out, but the reference commits suggest I may have.

0reactions
dadamssgcommented, Aug 2, 2018

@timwis hey can you show exactly what you did in your webpack config to handle this? Something like this?

module.exports = {
  //...
  resolve: {
    mainFields: ['module', 'main', 'browser']
  }
}

This breaks my app. 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Anything wrong with releasing software in debug mode?
In the IDE you use a debug version so you should strive to release in debug mode. Save this answer. Show activity on...
Read more >
Set debug and release configurations - Visual Studio (Windows)
From the Build menu, select Configuration Manager, then select Debug or Release. Generate symbol (.pdb) files for a build (C#, C++, Visual Basic ......
Read more >
How to build a debug version of the library without having the ...
You can use ./build/build.py --debug to create a build with the original names. You can also use shaka-player.compiled.debug.js or shaka-player.
Read more >
How to use a debug version of MuseScore
Open the uncompressed "mscore-debug" folder · Double-click "runDebug.bat". This should open the main MuseScore window and the debug window · Follow the exact ......
Read more >
Debug vs. Release - Flounder
If you are writing DLLs of your own that use MFC, you must not have a mix of debug versions of DLLs or...
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