Skip to content

Commit

Permalink
chore: updated build config to support the latest fixes (#62)
Browse files Browse the repository at this point in the history
/no-platform

Ts config settings are breaking the latest version of test track builds
in app.
  • Loading branch information
zerodom30 authored Sep 12, 2023
1 parent 10f781d commit fb1026e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
import omit from 'lodash.omit';
import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
import typescript from '@rollup/plugin-typescript';
import { readFileSync } from 'fs';

const tsConfig = JSON.parse(readFileSync('tsconfig.json', { encoding: 'utf8' }));

const customTSConfig = {
...omit(tsConfig.compilerOptions, ['declaration', 'emitDeclarationOnly', 'declarationDir']),
tsconfig: false,
include: ['src/*.ts', 'types'],
noEmit: true
};

export default [
{
Expand All @@ -40,14 +29,14 @@ export default [
},
plugins: [
resolve({
browser: true
browser: true,
}),
typescript(customTSConfig),
typescript({ noEmitOnError: false }),
commonjs(),
terser(),
babel({
exclude: 'node_modules/**'
})
]
}
},
];

0 comments on commit fb1026e

Please sign in to comment.