Package Exports
- detective-vue2
- detective-vue2/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (detective-vue2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Get the dependencies of Vue module
Supports Vue2 and Vue3
npm install detective-vue2
Usage
const fs = require('fs');
const detective = require('detective-vue2');
const mySourceCode = fs.readFileSync('myfile.vue', 'utf8');
// Pass in a file's content or an AST
const dependencies = detective(mySourceCode);
License
MIT