first stab at supporting Rollup (#130)

This commit is contained in:
Rich Harris
2018-08-25 12:42:27 -04:00
parent 24f2855f89
commit 9cbb8bdc33
11 changed files with 276 additions and 107 deletions

View File

@@ -105,11 +105,9 @@ function generate_client(
code += `
if (module.hot) {
import('${sapper_dev_client}').then(client => {
client.connect(${dev_port});
});
}`.replace(/^\t{3}/gm, '');
import('${sapper_dev_client}').then(client => {
client.connect(${dev_port});
});`.replace(/^\t{3}/gm, '');
}
return code;