Created
March 4, 2014 19:18
-
-
Save graue/9353602 to your computer and use it in GitHub Desktop.
Browserify source map test case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('underscore'); | |
function foo() { | |
_(['foo','bar','baz']).each(function(s) { | |
console.log(s); | |
}); | |
} | |
module.exports = foo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test page</title> | |
</head> | |
<body> | |
<script src="bundle.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = require('./foo'); | |
foo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "sourcemaptestcase", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"underscore": "1.6.0" | |
}, | |
"devDependencies": { | |
"browserify": "3.30.1" | |
}, | |
"scripts": { | |
"build-js": "browserify -d main.js >bundle.js" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment