Skip to content

Instantly share code, notes, and snippets.

@brianmhunt
Last active August 29, 2015 14:09
Show Gist options
  • Save brianmhunt/c67d4964f1a4a1982c29 to your computer and use it in GitHub Desktop.
Save brianmhunt/c67d4964f1a4a1982c29 to your computer and use it in GitHub Desktop.
Browserify transforms not working with paths
# << Any invalid Javascript character.
module.exports.hereiam = ->
console.log("0xDEADBEEF")
{
"name": "b",
"version": "1.0.0",
"main": "b.coffee",
"browserify": {"transform":["coffeeify"]}
}
#!/usr/bin/env node
var opts = {
paths: ["./b/"],
// global: true,
// globalTransform: ['coffeeify'],
};
var bundler = require('browserify')("./index.js", opts);
bundler.bundle().pipe(process.stdout)
require('./b/b.coffee') // works
require('b.coffee') // does not work
{
"browserify": {
"transform": ["coffeeify"]
},
"name": "x",
"version":"1.0.0"
}
@brianmhunt
Copy link
Author

Note that b-* is meant to be b/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment