documentation/src/module_filters.js
Anton Shchekota e3c59d77e4 fix: external was removed as prefer of input usages
BREAKING CHANGE:
external parameter was removed
Migration plan propose to move all external resources to input usages
Motivation: packages has many inputs which describe in package.json
so that mean need each time to parse all package.json of exsternal resources to understand which etry point need to pick.
But it is base on guesses because entry point may could not contains a documentation and the best way to handle it manualy.
2021-11-11 11:52:31 +03:00

12 lines
260 B
JavaScript

// Skip external modules. Based on http://git.io/pzPO.
const internalModuleRegexp =
process.platform === 'win32'
? /* istanbul ignore next */
/^(\.|\w:)/
: /^[/.]/;
/**
* Module filters
*/
export default id => internalModuleRegexp.test(id);