-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 can I inspect the packages while running examples? #1907
Comments
Okay here's what worked. First I disabled all the examples I wasn't using in Then in the example I'm using, From: |
I'm going to leave this open because I think we could use an easier way to enable this mode of development/inspection. Does anyone have an easy to implement idea for a switch that we could use for the entire repo? I have some half-baked ideas, but nothing fully coherent yet. |
Ah scratch the above. This appeared to work until I actually tried to do anything, then I get: Here's where things fail: https://github.com/ianstormtaylor/slate/blob/master/packages/slate-react/src/components/content.js#L437 At this stage the props look like this: And inside of |
It sounds like some just needs to investigate how the examples are built with Webpack, and what the required settings are in Webpack/Chrome to make sourcemaps work with the debugger? |
The real issue is not the sourcemaps, as much as it is enabling use of the entire Slate monorepo as easily debuggable source code. The sourcemap issue can probably be resolved with I'm pretty experienced with Webpack (which is to say, I've had some less than fun experiences), but this one I can't figure out. On the surface it would seem like my attempt to import the package's directly from source should work, but oh boy does it not work. |
Just a note for anyone else taking a look at this: If you |
I'm running the examples using
yarn run start
and I'm trying to investigate howSlate
andSlate-React
handle things like setting selection, compositionEvents, etc. when using a mobile browser, but I am not able to inspect any of the relevant files. I'm not familiar with Lerna, so I'm not sure if that's related.How can I view the files for
Slate-React
when inspecting the Rich Text example in the browser?The text was updated successfully, but these errors were encountered: