Skip to content

Commit

Permalink
chore: removed additional ts setting which are surplus to requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
zerodom30 committed Sep 12, 2023
1 parent 31a00d8 commit 9cc4765
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 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,
noEmit: true
};

export default [
{
Expand Down Expand Up @@ -42,7 +31,7 @@ export default [
resolve({
browser: true,
}),
typescript(customTSConfig),
typescript({ noEmitOnError: false }),
commonjs(),
terser(),
babel({
Expand Down

0 comments on commit 9cc4765

Please sign in to comment.