react-definition README
Very lightweight language support for react definitions.
Features
When using @ and dynamic path resolving to import a module, it's helpful if you want to go to the definition of it.
Tip: Go to definition.
Requirements
Nothing
Extension Settings
Include if your extension adds any VS Code settings through the contributes.configuration
extension point.
For example:
This extension contributes the following settings:
- There must exists
config/default.js
and params named alias like these:
alias: {
'@root': __ROOT,
'@client': __CLIENT,
'@server': path.join(__ROOT, 'server'),
'@subpage': path.join(__CLIENT, 'subpage'),
'@app': path.join(__dirname, '../client'), // backward compatible
'@lib': path.join(__dirname, '../lib'),
'@turbo': path.join(__ROOT, 'turbo'),
'@component': path.join(__CLIENT, 'component'),
'@styles': path.join(__CLIENT, 'styles'),
'@utils': path.join(__CLIENT, 'utils'),
'@thrift': path.join(__ROOT, 'server', 'thrift', 'dist'),
'@thriftService': path.join(__ROOT, 'server', 'thriftService'),
},
Release Notes
0.0.1
Initial release of ...
Enjoy!