Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Souce map for several source files in coffee-script.js #4121

Closed
off-border opened this issue Oct 6, 2015 · 1 comment
Closed

Souce map for several source files in coffee-script.js #4121

off-border opened this issue Oct 6, 2015 · 1 comment

Comments

@off-border
Copy link

when I trying to use more than one .coffee file

<script data-src="js/file1.coffee"      type="text/coffeescript"></script>
<script data-src="js/file2.coffee"      type="text/coffeescript" ></script>

<script src="lib/coffee-script.js"></script>

The content of the 1st script is:

console.log 'file1'

The content of the 2st script is:

console.log 'file1'

I get the source map for the 1st file only. And all runtime errors and output in the chrome console refer to an unexisting last string file1.coffee

And the console output is:

file1        file1.coffee:1 
file2        file1.coffee:1 
@GeoffreyBooth
Copy link
Collaborator

The source map implementation has been refactored since this issue was opened, including improvements to tracking filenames. If the above is still an issue in 2.0.0-beta1 or later, please comment and I can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants