(filter, resourcePath)
| 476 | } |
| 477 | |
| 478 | function getFilter(filter, resourcePath) { |
| 479 | return (...args) => { |
| 480 | if (typeof filter === "function") { |
| 481 | return filter(...args, resourcePath); |
| 482 | } |
| 483 | |
| 484 | return true; |
| 485 | }; |
| 486 | } |
| 487 | |
| 488 | function getValidLocalName(localName, exportLocalsConvention) { |
| 489 | const result = exportLocalsConvention(localName); |