Comments (5)
I don't need source maps because all code is es6 originally. They are huge and they slow down the generation.
from snowpack.
I second this request, mainly because I've so rarely needed source maps for third party libraries, because I've rarely needed to debug them. (The bug is 99.99% of the time in my own code, not theirs.)
from snowpack.
Sure, I think that makes sense as an opt-in option. Can I ask why you don't want them, if they're free? You're just not using them?
from snowpack.
First, let me admit: I am ridiculously minimalist! I don't use workflow tools that require "compiling" my JS before running it. My only workflow tools come in at git commit or npm install/publish time.
So I'm very Vanilla JS, and all my workflow is in npm scripts.
This has little to do with the map thing but it clarifies that I'm, err, different from todays dev in the same way you've discovered .. they are definitely not minimalist! And truth be told, following the crowd, so to speak.
So in the case of maps, I only used them years ago when modules required lots of babel etc. But when modules hit the browsers, I reverted to not needing them. Being lazy, I didn't look for other good reasons to have maps.
It does, however, make sense to be able to un-minify, code. Chrome tries to support "pretty printing" minified code for example. I don't know if the maps help in that case, I couldn't get devtools to pretty print a test minified file.
So, long story short, because I (apparently) don't need them, I made this issue. I'm fine putting this on the back burner, I can git-ignore them if I want to, and your other work is far more important.
from snowpack.
This has been merged to master via --no-source-map
. Thanks @sdegutis for contributing and everyone for the discussion!
Note: Support has been merged to master but won't be released for a few more days. But, you can try it today via:
npm install http://cdn.pika.dev/@pika/web/master
from snowpack.
Related Issues (20)
- π BUG: snowpack doesn't correctly cache dependencies for packages with multiple package.json files when installing with pnpm
- π BUG: Can't quit dev server Win11 HOT 2
- π‘ RFC: Option to skip esbuild transform
- π BUG: hmr-client.js fails to load when inside of a srcdoc iframe
- Install snowpack for development failed. HOT 2
- π‘ RFC: Allow acess to hmr engine websocket service
- π BUG: [esinstall] duplicate export 'default' react
- π BUG: dev server fails with "Uncaught TypeError: require$$0 is not a function" due to incorrect require() transform
- π BUG: esinstall: πPutout support
- AMD requirejs module support (or docs on how to ..)
- π BUG: Skypack build fails if using modern JS features
- π BUG: `index.bin.js` file is mistaken as Trojan by Kaspersky and got deleted HOT 2
- π‘ RFC: Setting to hide deprecated options in the docs
- π BUG: default export problem
- π BUG: problem with default export / import in some cases HOT 1
- π BUG:
- π BUG: Snowpack can't find /src/index.jsx no matter what I do? HOT 1
- π BUG: Can't transpile files with new ES features such as optional chaining and private class fields
- π BUG: vm2 has been discontinued and has a critical vulnerability identified
- I can't install a template. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snowpack.