-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
On a nativescript project I'm using:
coffee -w -c -t -m -b -o app/ app/
to watch files for changes and recompile+transpile them.
The files are:
app/app.coffee
app/bundle-config.coffee
app/home/home-page.coffee
app/home/home-view-model.coffee
after the compilation/transpilation I get the correct js files that work as expected .. and I get the following sourcemap files:
app/app.js.map
app/bundle-config.js.map
app/home/home-page.js.map
app/home/home-view-model.js.map
But all sourcemaps have the same entries ... only the "mappings" changes....
they ALL have EXACTLY this content (only the "mappings" field changes):
{
"version": 3,
"file": "app.js",
"sourceRoot": "..",
"sources": [
"app/app.coffee"
],
"names": [],
"mappings": ** THIS IS THE ONLY FIELD THAT CHANGES FROM FILE TO FILE **,
"sourcesContent": [
"#In NativeScript, the app.js file is the entry point to your application.\n#You can use this file to perform app-level initialization, but the primary\n#purpose of the file is to pass control to the app’s first module.\n\n# coffee -w -c -t -M -b -o app/ app/\n\nrequire './bundle-config'\nApplication = require('application')\nApplication.start moduleName: 'home/home-page'\n\n#Do not place any code after the application has been started as it will not\n#be executed on iOS.\n"
]
}
If I compile+transpile them individually this does not happen ... but I'm still unable to debug the project with Chrome Tools ... breakpoints don't work ... but this is another problem...