Skip to content

Commit

Permalink
chore: make inspector loader category to pre, close #12
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed Dec 13, 2020
1 parent 87d58bc commit 419e89c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-dev-inspector",
"version": "1.1.2",
"version": "1.1.3",
"description": "dev-tool for inspect react components and jump to local IDE for component code.",
"main": "es/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/plugins/webpack/config-inspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const inspectorChainWebpack = (
config
.module
.rule('inspector')
.enforce('pre')
.test(/\.[jt]sx$/)
.exclude
.add(/node_modules/)
Expand Down

1 comment on commit 419e89c

@zthxxx
Copy link
Owner Author

@zthxxx zthxxx commented on 419e89c Dec 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

close #11

Please sign in to comment.