(name)
| 21 | var parseConfigCache = {} |
| 22 | |
| 23 | function checkExtend(name) { |
| 24 | var use = ' Use `dangerousExtend` option to disable.' |
| 25 | if (!CONFIG_PATTERN.test(name) && !SCOPED_CONFIG__PATTERN.test(name)) { |
| 26 | throw new BrowserslistError( |
| 27 | 'Browserslist config needs `browserslist-config-` prefix. ' + use |
| 28 | ) |
| 29 | } |
| 30 | if (name.replace(/^@[^/]+\//, '').indexOf('.') !== -1) { |
| 31 | throw new BrowserslistError( |
| 32 | '`.` not allowed in Browserslist config name. ' + use |
| 33 | ) |
| 34 | } |
| 35 | if (name.indexOf('node_modules') !== -1) { |
| 36 | throw new BrowserslistError( |
| 37 | '`node_modules` not allowed in Browserslist config.' + use |
| 38 | ) |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | function getPathType(filepath) { |
| 43 | var stats |
no outgoing calls
no test coverage detected
searching dependent graphs…