mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-25 14:26:29 +00:00
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.
12 lines
260 B
JavaScript
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);
|