Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browserify Transform, Webpack Loader #50

Open
nmn opened this issue Nov 18, 2014 · 7 comments
Open

Browserify Transform, Webpack Loader #50

nmn opened this issue Nov 18, 2014 · 7 comments

Comments

@nmn
Copy link

nmn commented Nov 18, 2014

Would be great to have these.

@alongubkin
Copy link
Owner

Can you please further explain?

@nmn
Copy link
Author

nmn commented Nov 19, 2014

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.

@Namek
Copy link
Collaborator

Namek commented Nov 19, 2014

@Naman34 Are you able to do that?

@nmn
Copy link
Author

nmn commented Nov 28, 2014

@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.

@timdp
Copy link

timdp commented Nov 30, 2014

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.

@nmn
Copy link
Author

nmn commented Nov 30, 2014

hmmm.... I'll look into it.

@reecer
Copy link
Contributor

reecer commented Dec 1, 2014

I've implemented a webpack loader reecer/spider-loader. I'm open to PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants