Skip to content

Commit

Permalink
Disable sourcemaps in build mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb35 committed Apr 11, 2019
1 parent 7be7e1e commit c6e42e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function build({
dev: false
});

const { client, server, serviceworker } = await create_compilers(bundler, cwd, src, dest, true);
const { client, server, serviceworker } = await create_compilers(bundler, cwd, src, dest, false);

const client_result = await client.compile();
oncompile({
Expand All @@ -94,7 +94,7 @@ export async function build({

if (legacy) {
process.env.SAPPER_LEGACY_BUILD = 'true';
const { client } = await create_compilers(bundler, cwd, src, dest, true);
const { client } = await create_compilers(bundler, cwd, src, dest, false);

const client_result = await client.compile();

Expand Down Expand Up @@ -138,4 +138,4 @@ export async function build({
result: serviceworker_stats
});
}
}
}

0 comments on commit c6e42e3

Please sign in to comment.