browserify/ify-loader

Using brfs transform?

niksy opened this issue · 1 comments

niksy commented

How would you use this loader with brfs transform?

My input is:

var fs = require('fs');
var a = fs.readFileSync('./foo', 'utf8');

The output is:

var fs = __webpack_require__(!(function webpackMissingModule() { var e = new Error("Cannot find module \"fs\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
var a = fs.readFileSync('./foo', 'utf8');

Check out this part of the readme, which explains how to set up ify-loader for local files:

https://github.com/hughsk/ify-loader#using-transforms-in-your-project