spider
spider copied to clipboard
Browserify Transform, Webpack Loader
Would be great to have these.
Can you please further explain?
This is similar to having a gulp plug-in. Browserify and Webpack are both commonjs bundlers. It would great to have plug-in to those two tools, so they can compile spider to js while bundling.
@naman34 Are you able to do that?
@Namek I'm assuming that you're asking if I can work on these myself.
I've actually never written plug-ins for Browserify or Webpack myself, but they both fairly straightforward.. So I can look into it.
Before I do, I would need to know if Spider has any concept of modules yet, or has any plans.
I guess we can already do:
-
spider --target es6
-
traceur --modules commonjs
-
browserify
or, alternatively:
-
spider --target es6
-
traceur --modules amd
- use RequireJS
... although for my test project, Traceur is throwing "Unexpected token import" because the code is wrapped in an immediate function.
hmmm.... I'll look into it.
I've implemented a webpack loader reecer/spider-loader. I'm open to PRs.