browserify / browserify/browserify

Stream Non-Entry Files

Open
#1,813 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14.7k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

I'm trying to also stream files that the entry file requires is this possible?
I have been looking for a while and haven't found innate to browserify or a plugin.

Simplified Example:
```javascript
const str = require('string-to-stream');
const browserify = require('browserify');

const entry = "const func = require('./func.js')";
const func = "module.exports = function() {return 'func'}";

browserify(str(entry), {basedir: __dirname})
// somehow map './func.js' to func string
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.