(file: string)
| 665 | } |
| 666 | |
| 667 | import(file: string) { |
| 668 | let name = this.imports.get(file) |
| 669 | if (!name) { |
| 670 | name = this.getName(file) |
| 671 | this.imports.set(file, name) |
| 672 | } |
| 673 | return name |
| 674 | } |
| 675 | |
| 676 | formatName(name: string) { |
| 677 | return `$_${name.replace(/\W+/g, '_')}` |
no test coverage detected