Server-side preload check fixes (fixes #575, #594, #598)

This commit is contained in:
Conduitry
2019-03-08 08:34:36 -05:00
committed by Rich Harris
parent 9540383796
commit 74c66b784f
4 changed files with 18 additions and 21 deletions

View File

@@ -9,7 +9,8 @@ import { builtinModules } from 'module';
const external = [].concat(
Object.keys(pkg.dependencies),
Object.keys(process.binding('natives')),
'sapper/core.js'
'sapper/core.js',
'svelte/compiler'
);
function template(kind, external) {
@@ -65,4 +66,4 @@ export default [
})
]
}
];
];