emit legacy build

This commit is contained in:
Rich Harris
2018-08-30 22:58:07 -04:00
parent afcd643035
commit e00b315dec
4 changed files with 45 additions and 8 deletions

View File

@@ -9,8 +9,11 @@ export default {
},
output: () => {
let dir = `${locations.dest()}/client`;
if (process.env.SAPPER_LEGACY_BUILD) dir += `/legacy`;
return {
dir: `${locations.dest()}/client`,
dir,
entryFileNames: '[name].[hash].js',
chunkFileNames: '[name].[hash].js',
format: 'esm'