trace-exports
v0.0.1
Published
Finds the root source file for each default/named variable exported by an entry file
Downloads
2
Readme
trace-exports
Finds the root source file for each default/named export
Usage
// entry.js
import one from './middle.js'
export default one
// middle.js
import one from './numbers.js'
export default one;
// numbers.js
module.exports = 1
import traceExports from "trace-exports";
const exportSources = traceExports("./entry.js");
// outputs:
{
defaultExport: {
isPresent: true,
location: "numbers.js"
},
namedExports: []
}