keithwhor / NtSeq

JavaScript (node + browser) bioinformatics library for nucleotide sequence manipulation and analysis.
MIT License
208 stars 25 forks source link

Using with browserify/webpack #4

Closed tnrich closed 8 years ago

tnrich commented 8 years ago

Hey there,

I see that the node-version uses the fs module. While this is great for node packages, it'd be nice if this could optionally be turned off, even if in a "node-like" environment. I'm trying to bundle this package using browserify and errors are being thrown because of the fs requirement.

Excellent library and thanks! Thomas

tnrich commented 8 years ago

I was able to get this to work fine by supplying a:

node: {
        fs: "empty"
},

field in my webpack config file.

It won't be able to use the fasta loading functionality, but at least I can use the rest of the tool.