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

How to make file locations visible? #3

Closed
vslinko opened this issue Sep 20, 2015 · 7 comments
Closed

How to make file locations visible? #3

vslinko opened this issue Sep 20, 2015 · 7 comments

Comments

@vslinko
Copy link
Contributor

vslinko commented Sep 20, 2015

I'm using component-inspector with react but without basis server.
As I see, transpiled source contains references to the file locations but those locations doesn't visible in the inspector popup.
I try to find a reason inside your source code but it's too hard for me and I need your help.

@vslinko
Copy link
Contributor Author

vslinko commented Sep 20, 2015

Looks like I had conflict between plugin definitions. Now, when my babel is properly configured I get an error:
Uncaught ReferenceError: $devinfo is not defined

@vslinko
Copy link
Contributor Author

vslinko commented Sep 20, 2015

Where to get $devinfo implementation?

@lahmatiy
Copy link
Owner

Yes, instrumented code needs for runtime API. Some version of It could be found here https://github.com/basisjs/basisjs-tools-instrumenter/blob/master/js-runtime.js
But I'm busy to make it much easily. Will be available today later (partially done already).

@lahmatiy
Copy link
Owner

I added runtime API script to babel-plugin-source-wrapper and implemented new option runtime for it. Look for updated readme for details: https://github.com/restrry/babel-plugin-source-wrapper
You can also find example for webpack config there.

@lahmatiy
Copy link
Owner

You can try it now from repo, or wait a little until I fix issue with require.ensure and publish new version.

@lahmatiy
Copy link
Owner

Is it ok now? Could we close issue?

@vslinko
Copy link
Contributor Author

vslinko commented Sep 21, 2015

It works. Thank you.

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