Releases: dependents/Dependents
AMD/ES6 bug fixes
AMD Fix: properly support a baseUrl with a leading slash. Thanks to Mike Sherov for the bug report!
ES6 Fix: Properly parse files that contain JSX and ES7
Sublime Text 2 Support
All commands now work with ST2
Bug fixes and enhancements
- Lots of AMD partial resolution bugs were fixed with the Jump To Dependency, Find Dependents, and Get Tree features.
- Find Dependents: you can now find the dependents of any templates or styles that are imported by AMD modules
- Get Tree: imported templates and styles will now show up as part of the dependency tree
Fix regression: Exclude handling
If you had an exclude array in your .deprc file, you might have seen undefined is not a function
in the most recent update of Dependents.
Recently, a lot of work is going on under the hood to make Dependents easier to integrate with other editors.
Feel free to yell at me if you experience any regressions: @mrjoelkemp on Twitter
Find Dependents: Webpack support
The Find Dependents feature now supports processing modules that use Webpack aliasing for JS codebases. This means that if you're using resolve.alias in your webpack config, Dependents will resolve any of those aliased modules when it's searching for the Dependents of a module.
To use, you need a webpack_config
entry in your .deprc
file that points to the location of your webpack config:
{
"webpack_config": "path/to/my/webpack.config.js"
}
- Check out the configuring settings section for more information.
Additional Dependents features will support Webpack resolution in future updates.
Update the Dependents package in Sublime Text or install it if you haven't yet.
Webpack support!
The JumpToDependency feature supports jumping to dependencies that are aliased via a webpack config.
You can now add a webpack_config
to your .deprc
file that points to the location of your webpack config:
{
"webpack_config": "path/to/my/webpack.config.js"
}
Additional Dependents features will support Webpack resolution in future updates.
ES6 bugfix
ES6 projects with a RequireJS config file should be interpreted as AMD modules and use the config for resolution.
Internal Refactoring
Now using node-filing-cabinet as the lookup factory. This allows Dependents to care very little about the actual type of module/language we're dealing with.
This also moves more logic outside of Dependents and into node tooling.
Windows users rejoice!
I hope.
I landed a deduplication of the node tools that power this plugin. This should avoid Windows users hitting the
maximum filepath length bug that prevented the plugin from working.
This resulted in the deletion/move of 117k files, so let me know if anything breaks.
Dedupe
Dedupe removed about 22k files from the node_modules folder.