I was trying to use browserify on a file that uses the fs object. When I browserify it, the call to require('fs')
doesn't get transformed and require
returns {}
.
Is there any workaround for this? I've seen some suggestions on stackoverlow and elsewhere, but none seem to be fully realized.
I actually hoped to create a google web packaged app using browserify for a class I teach.
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…