feat(building-rollup): use babel compact mode

This commit is contained in:
Lars den Bakker
2020-05-24 20:29:48 +02:00
parent d0808b88a8
commit f2414ce0b3
2 changed files with 4 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ const { isFalsy } = require('../utils');
const createBabelConfigRollupBuild = developmentMode => ({
babelHelpers: 'bundled',
compact: true,
plugins: [
// rollup doesn't support optional chaining yet, so we compile it during input
[require.resolve('@babel/plugin-proposal-optional-chaining'), { loose: true }],
@@ -37,6 +38,7 @@ function createBabelConfigRollupGenerate(modern = true) {
return {
babelrc: false,
configFile: false,
compact: true,
presets: [
[
require.resolve('@babel/preset-env'),
@@ -70,6 +72,7 @@ function createBabelConfigRollupGenerate(modern = true) {
const babelConfigSystemJs = {
babelrc: false,
configFile: false,
compact: true,
plugins: [
require.resolve('@babel/plugin-syntax-import-meta'),
require.resolve('@babel/plugin-proposal-dynamic-import'),

View File

@@ -76,7 +76,7 @@ describe('integration tests', () => {
testCase.pages.forEach(pageUrl => {
it(`passes the in-browser tests for page ${pageUrl}`, async function it() {
this.timeout(10000);
this.timeout(30000);
const appPath = `http://localhost:8080${serverConfig.openPath}${pageUrl}`;
const page = await browser.newPage();