webpack-contrib / transform-loader

transform loader for webpack
MIT License
110 stars 23 forks source link

brfs not working in webpack #7

Closed jaydenlin closed 7 years ago

jaydenlin commented 9 years ago

I used webpack 1.6 and meet the problem here. My setting is

          {
                test: /\.js$/,
                loader: "transform?brfs"
            }

And my code is

require('fs').readFile('./test.txt', 'utf8',function(err,data){                                                                              
    console.log(data);
});

I got fs is not defined in browser console.

sokra commented 9 years ago

Stacktrace?

revolunet commented 9 years ago

works here with webpack 1.8.10

jaydenlin commented 8 years ago

Thank you for the reply! I will try webpack 1.8.10.

loretoparisi commented 8 years ago

I have "_id": "webpack@1.13.1", and I get the same error

JavaScript console: bundle.js:6091: ReferenceError: Can't find variable: fs
michael-ciniawsky commented 7 years ago

Related #13