Comments (6)
@rbiggs SourceMaps are now available:
- https://unpkg.com/[email protected]/dist/hyperapp.js.map
- https://unpkg.com/[email protected]/dist/hyperapp.hx.js.map
from hyperapp.
Yup, I just noticed. Thanks. Will make it a whole lot easier to debug now.
from hyperapp.
Yea. Rollup with rollup-plugin-buble
and rollup-plugin-uglify
and passing just sourceMap: true to Rollup, gives zero config and sourcemaps.
from hyperapp.
Hi @rbiggs, can you share how you are using source maps to debug? I don't use them, so I really wasn't paying much attention when this issue was created, but now that I thought about it a bit, hyperapp is written in ES5, so what's the benefit of distributing a source map?
from hyperapp.
@dodekeract Are you using https://unpkg.com/[email protected]/dist/hyperapp.js.map?
from hyperapp.
I was using a dev server to test hyperapp. In production you'll be using the minified/uglified version of hyperapp, so sourcemaps are very useful to have!
The last line in hyperapp.js
//# sourceMappingURL=hyperapp.js.map
makes the Dev Console download/load hyperapp's source map during a debug session, when an exception occurs, etc.
Without source maps 😞
With source maps 😄
How to enable source maps?
-
When you grab the minified hyperapp from the CDN, you don't have anything to do because the sourcemap link is already embedded in the file.
-
When you bundle your app with hyperapp.js yourself, it's up to you to generate sourcemaps, just like we generate sourcemaps for hyperapp in this repo. This is easy to do with webpack, rollup, etc.
from hyperapp.
Related Issues (20)
- A way to insert raw Html HOT 1
- TypeError: can't access property 0, newSubs is null, when setting the state to undefined. HOT 4
- Issue with null-vnodes HOT 1
- prevent rerender node HOT 2
- The dispatch initializer ends in an endless loop on init when dispatching any action HOT 7
- Injected classes gets removed when using object/array to define class props HOT 1
- hyperapp version HOT 3
- Memo Data Gotcha HOT 5
- Confusing doc for actions -> wrapped actions HOT 5
- Passing arguments to init HOT 4
- [Question] Headless mode is still possible? HOT 1
- Destroying a child app HOT 8
- @hyperapp/html: use a Proxy? HOT 9
- Actions returning other Actions HOT 5
- Compile template tag to hyperscript HOT 17
- A challenge to hyperapp community HOT 1
- Has 2.0 been dropped from development? HOT 3
- oldSub[2] is not a function HOT 3
- Cannot read properties of null (reading 'length') HOT 5
- Unlikely Use Case bug in HTML and SVG Packages HOT 9
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 hyperapp.