zthxxx / react-dev-inspector

jump to local IDE code directly from browser React component by just a simple click
https://react-dev-inspector.zthxxx.me
MIT License
1.15k stars 68 forks source link

module.xx.test(/\.[jt]sx$/) need support .js extension #83

Closed zhixiaoqiang closed 3 years ago

zhixiaoqiang commented 3 years ago

Generally do not have the habit of writing .jsx, more is to write .js

config
    .module
    .rule('inspector')
    .enforce('pre')
    - .test(/\.[jt]sx$/)
    + .test(/\.(tsx|jsx?)$/)
zthxxx commented 3 years ago

No, that's on purpose. JSX shouldn't supposed in .js file