Open Bug 1213028 Opened 9 years ago Updated 2 years ago

Enable Node-style module resolution for DevTools loader

Categories

(DevTools :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: jryans, Unassigned)

References

(Blocks 1 open bug)

Details

Looks like we can enable Node-style resolution like: resolve("devtools/bob") loads `devtools/bob/index.js` if `bob` is a directory. This should just mean setting `isNative: true` on the loader.
There may be some overhead here, as it checks to see if `bob.js` exists first, then `bob/{main}`, where {main} is defined by `bob/package.json`'s "main" entry, then `bob/index.js`.
Product: Firefox → DevTools
Type: defect → enhancement
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.