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

Write to and read from memory #25

Closed
wuct opened this issue Jun 29, 2016 · 3 comments
Closed

Write to and read from memory #25

wuct opened this issue Jun 29, 2016 · 3 comments

Comments

@wuct
Copy link

wuct commented Jun 29, 2016

Currently, mocha-webpack compile the webpack bundle to .tmp folder and let mocha read it from there. This process is time-consuming.

I suggest we should write the bundle to memory and let mocha read it from memory. This blog shows that it is a feasible way by using an undocumented mocha api.

If this looks good to you, I would like to give it a try :)

@zinserjan
Copy link
Owner

Yeah, I like the idea of handling everything in memory. I always wanted to implement this feature, but never found the time.

If you would like to give it a try, please do it. .

We have to consider a few things:

  • write bundle to memory
  • read bundle from memory
  • compatibility with sourcemaps (node-source-map-support)
  • code splitting
  • debug support for IDE's (e.g. Webstorm mocha plugin)

@zinserjan
Copy link
Owner

mocha-webpack compiles to memory now (#83)

@wuct
Copy link
Author

wuct commented Dec 30, 2016

Thanks!

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

No branches or pull requests

2 participants