Giter Club home page Giter Club logo

Comments (5)

stuta avatar stuta commented on July 22, 2024 2

I don't need source maps because all code is es6 originally. They are huge and they slow down the generation.

from snowpack.

sdegutis avatar sdegutis commented on July 22, 2024 1

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.

FredKSchott avatar FredKSchott commented on July 22, 2024

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.

backspaces avatar backspaces commented on July 22, 2024

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.

FredKSchott avatar FredKSchott commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.