This commit is contained in:
Rich Harris
2018-08-09 19:46:09 -04:00
parent 666c113297
commit abda059be5

View File

@@ -107,7 +107,7 @@ function testExport({ basepath = '' }) {
'svelte-logo-192.png',
'svelte-logo-512.png',
].map(file => {
return basepath ? path.join(basepath.replace(/^\//, ''), file) : file;
return basepath ? path.join(basepath.replace(/^[\/\\]/, ''), file) : file;
});
// Client scripts that should show up in the extraction directory.