Last active
August 29, 2015 14:09
-
-
Save brianmhunt/c67d4964f1a4a1982c29 to your computer and use it in GitHub Desktop.
Browserify transforms not working with paths
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
# << Any invalid Javascript character. | |
module.exports.hereiam = -> | |
console.log("0xDEADBEEF") |
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": "b", | |
"version": "1.0.0", | |
"main": "b.coffee", | |
"browserify": {"transform":["coffeeify"]} | |
} |
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
#!/usr/bin/env node | |
var opts = { | |
paths: ["./b/"], | |
// global: true, | |
// globalTransform: ['coffeeify'], | |
}; | |
var bundler = require('browserify')("./index.js", opts); | |
bundler.bundle().pipe(process.stdout) |
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
require('./b/b.coffee') // works | |
require('b.coffee') // does not work |
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
{ | |
"browserify": { | |
"transform": ["coffeeify"] | |
}, | |
"name": "x", | |
"version":"1.0.0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note that
b-*
is meant to beb/