🌟 features
If you want to start using babel:
- if you use dependency-cruiser for the first time on your project you can use
depcruise --init
. It will detect the presence of many shapes of .babelrc's and configure it in your .dependency-cruiser.js - If you already have a .dependency-cruiser.js you can add this:
// ...
babelConfig: {
fileName: ".babelrc.json" // or however your .babelrc is called.
}
// ...
As noted in the PR and the documentation the babel support is ⚠️ experimental. This means it works and is well tested, but small tweaks that might be considered breaking for normal features might be implemented without dependency-cruiser bumping major versions
🐛 bugfixes
- bugfix(schema|types): make circular and exoticallyRequired mandatory in schema and type declarations (#306)
- bugfix(doc): typos & copy++ on preCompilationAttribute
🔧 maintenance
- Parse .dependency-cruiser.json with json5 instead of using strip-json-comments + the builtin json parser. Rationale: we need json5 for babel anyway and it's doing sorta the same thing as strip-json-comments as far as it matters for our use, so it saves one external dependency.