How do I not use the debug version?
See original GitHub issueHiya 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).
I’m importing it this way:
import { tiledMapLayer as EsriTileLayer } from 'esri-leaflet'
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@timwis hey can you show exactly what you did in your webpack config to handle this? Something like this?
This breaks my app. 😕