A browserify transform that inlines static file contents at build time, similar to brfs but built on top of Babel for ES2015+ support. Version 2.0.0 is the current stable release. It handles ES2015 import syntax, supports fs.readFileSync and fs.readdirSync, and evaluates path.join/path.resolve statically. Unlike brfs, it works with Babel AST for cleaner output and source maps, but is experimental and has limitations (e.g., no support for dynamic expressions or inline CommonJS require).
npm install brfs-babelNo compatibility data collected yet for this library.
Shows basic usage of brfs-babel with browserify and ES2015 import syntax.
Use brfs for more fs methods or implement custom transform.
Use only static string paths with path.join or path.resolve.
Use ES2015 import syntax for fs.
Consider using brfs or browserify-plugin-fs for production.
Run `npm install --save-dev brfs-babel` in project directory.
Use static path like path.join(__dirname, 'file.txt').
Use ES2015 import { readFileSync } from 'fs' instead.