Comments (8)
What's the issue?
from coffeeify.
Sorry,
the source-maps are simply not matching with the original files. They move a few lines.
Sorry, I will attempt to debug exactly the lines and see if I can find more info, the JSON data is just too freaking huge, so I am taking a bit too long.
But for now my question would be: should it work properly? Run coffeeify with sourceMaps and then browserify-shim, or is there any other config?
I will post it later after I can analyze the sourceMap data, but in Chrome of all devs, the mapping is simply wrong.
from coffeeify.
Ok, I did some analysis here.
If I put the breakpoint in the first line of a method, it means I am putting a breaking point in the method definition.
So, the actual breakpoint is always 1 line before the actual coffee line.
The real issue is to detect all versions of the tools, since I am using cartero that uses parcelify (https://github.com/rotundasoftware/parcelify) to call browserify for each page that I have.
Browserify version: 3.44.0
Coffeeify tried latest version. (I tried the one before that as well)
Problem is that I tried removing browserify-shim
and still, the mapping went wrong for about 1 line as well.
So, this may be related to something else, and not browserify-shim
.
from coffeeify.
Ok, that's quite the stack you got there :) If you can reduce the issue down to a reproducible example with just coffeify and another transform I might be able to help.
Otherwise maybe someone with some experience with the modules you are using can chime in
from coffeeify.
Sure, I will do that, I just initially though the issue was with coffeeify and browserify-shim, but I guess I was wrong. I will do some more investigating, and if I find any issues regarding this module I let you guys know.
If you guys know any known issues, let me know.
Just to add, I was able to limit the stack by reproducing the problem using this:
browserify src/views/pages/dashboard/dashboard.coffee -g coffeeify -g browserify-shim -g browserify-plain-jade -o bundle.js --debug
latest version of all these tools
Thanks.
from coffeeify.
Is this the cause of the issue?
browserify/browserify#322
from coffeeify.
I'm experiencing the same issue. Ever figure out what might be causing it, or found a solution?
from coffeeify.
Well @juriejan , what I did was simply avoid using coffee sourceMaps, instead, just plain javascript.
I changed my build system, so I dont use coffeeify anymore. I transform to js using grunt, and then grunt triggers a job that does browserify stuff. It got pretty complex, but in the end, I think this is best, since its actually faster than the original plan.
In the browser, I am able to view the js files as the source maps, so its no big deal.
edit: I simply dont remember if I found a guilty party, probably not, I did try a lot to fix it, but it got to the point where speed mattered more, so I focus on that.
from coffeeify.
Related Issues (20)
- GulpJS + Browserify + Coffeescript HOT 1
- Document the API HOT 3
- not working for node_modules in Coffee HOT 1
- Any status on browserify 3.x support? HOT 3
- Middleware usage? HOT 1
- Doesn't work in node_modules HOT 3
- Source map error HOT 4
- Read Configs from package.json HOT 1
- Would it be possible to tell browserify to look for index.coffee ? HOT 4
- 7.0.0 Breaks rebundles with coffeescript using watchify HOT 2
- Coffeeify sourcemaps have absolute paths to original source HOT 6
- Upgrade to coffeescript 1.9.0 HOT 4
- coffeeify doesn't allow requiring files in subdirectories of node_modules HOT 2
- .cofee entry files will not work using gulp / gulp-browserify HOT 3
- where do I see syntax errors, etc.? HOT 2
- Upgrade to coffeescript 1.10.0 HOT 3
- Problem passing transform options with grunt-browserify HOT 1
- Source maps broken when using with coffee-script 1.11.* HOT 1
- Allow `transpile` option to process JSX HOT 7
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 coffeeify.