We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
webpack添加路径别名后,vscode不能智能提示,如何解决?
The text was updated successfully, but these errors were encountered:
添加jsconfig.json文件
{ "compilerOptions": { "baseUrl": "./", "paths": { "@app/*": ["app/*"], "@components/*": ["app/build/components/*"], "@common/*": ["app/build/common/*"], "@actions/*": ["app/build/actions/*"], "@enums/*": ["app/enums/*"], "@styles/*": ["app/build/style/*"] }, "target": "ES6", "module": "commonjs", "jsx": "react", // 重要!支持jsx文件,否则jsx文件无法跳转 "allowSyntheticDefaultImports": true }, "include": [ "app/**/*" ], "exclude": ["node_modules"] }
注:
path 与 webpack配置的路径别名对应 jsx 支持jsx文件
path
jsx
Sorry, something went wrong.
No branches or pull requests
webpack添加路径别名后,vscode不能智能提示,如何解决?
The text was updated successfully, but these errors were encountered: