fix windows issues

This commit is contained in:
Pooya Parsa 2020-11-09 15:31:57 +01:00
parent 4b831fbd8d
commit 55f25aa884

View File

@ -13,7 +13,7 @@ interface Import {
}
const TMPL_INLINE = ({ imports }: { imports: Import[]}) =>
`${imports.map(i => `import ${i.name} from '${i.import}'`).join('\n')}
`${imports.map(i => `import ${i.name} from '${i.import.replace(/\\/g, '/')}'`).join('\n')}
const dynamicChunks = {
${imports.map(i => ` ['${i.id}']: ${i.name}`).join(',\n')}
};