aldendaniels / browserify-bundle-splitting Goto Github PK
View Code? Open in Web Editor NEWDemonstrates an approach to splitting code into multiple bundles using Browserify
Demonstrates an approach to splitting code into multiple bundles using Browserify
FYI, as of [email protected] fullPaths: true
is not required anymore.
Hi,
I tried to implement your solution to have my node_modules in a different bundle but pathmodify seems to fail on resolving some node_modules intern require (in my case, baobab-react).
See my fork (I added a on.error
log to output what's failing):
https://github.com/stephane-ruhlmann/browserify-bundle-splitting
On change I get the following:
fs.js:491
binding.open(pathModule._makeLong(path),
^
TypeError: path must be a string
at TypeError (native)
at Object.fs.open (fs.js:491:11)
at OpenReq.process (/Users/alden/Source/browserify-split-vendor-modules/node_modules/watchify/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:55:16)
at OpenReq.Req (/Users/alden/Source/browserify-split-vendor-modules/node_modules/watchify/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:126:8)
at new OpenReq (/Users/alden/Source/browserify-split-vendor-modules/node_modules/watchify/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:49:7)
at Object.open (/Users/alden/Source/browserify-split-vendor-modules/node_modules/watchify/node_modules/chokidar/node_modules/readdirp/node_modules/graceful-fs/graceful-fs.js:41:3)
at ReadStream.open (fs.js:1613:6)
at new ReadStream (fs.js:1600:10)
at Object.fs.createReadStream (fs.js:1554:10)
at Deps.readFile (/Users/alden/Source/browserify-split-vendor-modules/node_modules/browserify/node_modules/module-deps/index.js:190:17)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.