baggage-loader
baggage-loader copied to clipboard
maintainer needed
hey. does anyone want (and can) to maintain this package?
@Hi, @deepsweet thanks for awesome loader, I think for the long time, maybe I can try to fixed issue if I have some free time.
@madeinfree hi! let's start with some pull request :)
@deepsweet OK, thanks !! I'll do my best
Hey guys. I just found out about this loader. I've recently written something very similar, although it doesn't prepend require(yourDependency)
to code, but appends require.include(yourDependency)
so that Webpack only adds the dependency to the dependency graph.
It's called convention-loader
and available from webpack-dependency-suite/loaders/contention-loader
and works with Webpack 2.0. You can use a predefined convention (like 'extension-swap') or define a custom one by passing a method.
If you'd like, I can make the type of the require configurable (currently only appending require.include
), so that it could essentially replace baggage-loader.
Here's its code: https://github.com/niieani/webpack-dependency-suite/blob/master/loaders/convention-loader.ts.
@deepsweet I guess I could. I'm using this it practically all my projects and it's a bit annoying that it's not been updated in years 😊
@LaurynasTG let's start with pull request if you have some idea and then I'll add you as collaborator both here and on NPM.