Comments (4)
from react-dev-inspector.
babel 插件不是必须的,可以尝试不加 babel 插件直接使用 react 组件;
常用框架其实都默认配置了 babel 或 swc 都自带这个信息的,而且都是绝对路径,
react-dev-inspector 自己的 babel 插件只是为了 简短好看便于观测,才在 DOM 上加相对路径;
from react-dev-inspector.
from react-dev-inspector.
服务端唤起方式的话,CloudIDE 上给你项目里这样配置可以了, 留存一份截图;
本地的话 REACT_EDITOR 环境变量值换成 webstorm 再启动就行
(还需要重启 shell 或 WebStorm 本身以加载新的 zshrc 文件改动)
![image](https://private-user-images.githubusercontent.com/15135943/260389552-c14c1ec8-c027-4ef4-aee5-5ab592d29af0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzOTcxMjQsIm5iZiI6MTcyMzM5NjgyNCwicGF0aCI6Ii8xNTEzNTk0My8yNjAzODk1NTItYzE0YzFlYzgtYzAyNy00ZWY0LWFlZTUtNWFiNTkyZDI5YWYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODExVDE3MjAyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxN2QyOWU5ZWFjNDA1NTA1Y2ZiYTA5MmY1N2EzY2VmZDAxZjNlMGRkMjVmNjZhYTYxNGZkY2U3N2JhOWI0MmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.J-lha4Cer4YtKOeNwvUHXNv5vO9HNBcJOkBWnhyP39M)
from react-dev-inspector.
Related Issues (20)
- 不支持react 17以下版本? HOT 1
- H5项目支持么?Chrome://inspect/#devices里是否支持? HOT 4
- [email protected] Inspector component onClientElement cannot get codeInfo HOT 2
- Duplicate with the official devtool feature?(官方的 Devtool 是否已经实现类似功能) HOT 1
- Inspector plugin navigation question | 关于 Inspector 插件跳转位置的使用 HOT 1
- 新版本vscode中,打不开指定文件了 HOT 1
- Feature Request: Adding an option to view or open the parent element. HOT 2
- webstorm 的代码跳转方法已经过时 HOT 5
- How to debug and check what causes my goto code fail to work? HOT 2
- 貌似不支持 react server component HOT 5
- [feat] Show component file path in Elements panel / 支持在 elements 面板显示组件文件路径 HOT 8
- simplify nextjs integratation HOT 4
- NextJS --turbo and swc won't work
- Jumping failed on windows(11) platform, when the component is under the path like "/[slug]/component.tsx", "/(pathless)/component.tsx" HOT 1
- Do you support Nextjs and SWC? HOT 6
- [Feat] Allow customization of EditorServer's BaseUrl | 希望能自定义`EditorServer`的`BaseUrl` HOT 4
- Path issues in Windows Vite React project | windows的vite的react项目中路径不太对,而且希望能加个绝对路径的,把path和Line和column合起来 HOT 1
- 反向 inspect,IDE-> Web Page HOT 3
- 当 body 设置了 transform 样式时,遮罩层出现的位置错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-dev-inspector.