( options: VitePluginFederationOptions )
| 81 | } |
| 82 | |
| 83 | export function parseExposeOptions( |
| 84 | options: VitePluginFederationOptions |
| 85 | ): (string | ConfigTypeSet)[] { |
| 86 | return parseOptions( |
| 87 | options.exposes, |
| 88 | (item) => { |
| 89 | return { |
| 90 | import: item, |
| 91 | name: undefined, |
| 92 | dontAppendStylesToHead: false |
| 93 | } |
| 94 | }, |
| 95 | (item) => ({ |
| 96 | import: item.import, |
| 97 | name: item.name || undefined, |
| 98 | dontAppendStylesToHead: item.dontAppendStylesToHead || false |
| 99 | }) |
| 100 | ) |
| 101 | } |
| 102 | |
| 103 | export function createContentHash(path: string): string { |
| 104 | const content = readFileSync(path, { encoding: 'utf-8' }) |
no test coverage detected
searching dependent graphs…