component-bundle icon indicating copy to clipboard operation
component-bundle copied to clipboard

Shared Dependencies

Open tarqd opened this issue 11 years ago • 2 comments

Ideally I'd like to have an option where component-bundle detects the shared dependencies between two bundles and places them in a "shared" dependencies bundle. So if bundles foo and bar both depend on component/emitter we'd get bundles/foo.js bundles/bar.js bundles/shared.js where shared.js contains component/emitter

tarqd avatar Dec 11 '13 05:12 tarqd

yeah, one problem that might occur is with require though we can prob put it in it's own file...

yields avatar Dec 11 '13 10:12 yields

It might make sense to put the require function in the shared.js since you'd need to include it to use either lib

tarqd avatar Dec 11 '13 15:12 tarqd