Skip to content

Commit

Permalink
fix(simplebar): fix wrong tsconfig loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Grsmto committed Dec 10, 2024
1 parent c3daef7 commit 915064c
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions packages/simplebar/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import commonjs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import license from 'rollup-plugin-license';
import { terser } from 'rollup-plugin-terser';
import { getBanner, getExternals } from '../../rollup.config.mjs';
import { getBanner, getExternals, tsConfig } from '../../rollup.config.mjs';

const require = createRequire(import.meta.url);
const pkg = require('./package.json');
Expand All @@ -19,10 +19,7 @@ const builds = [
format: 'esm',
sourcemap: true,
},
plugins: [
typescript({ tsconfig: '../../tsconfig.json' }),
license(getBanner(pkg)),
],
plugins: [typescript(tsConfig), license(getBanner(pkg))],
},
];

Expand All @@ -40,10 +37,7 @@ if (process.env.BUILD !== 'development') {
'simplebar-core': 'SimpleBar',
},
},
plugins: [
typescript({ tsconfig: '../../tsconfig.json' }),
license(getBanner(pkg)),
],
plugins: [typescript(tsConfig), license(getBanner(pkg))],
});

// browser script tag build, minified
Expand All @@ -57,7 +51,7 @@ if (process.env.BUILD !== 'development') {
plugins: [
resolve(),
commonjs(),
typescript({ tsconfig: '../../tsconfig.json' }),
typescript(tsConfig),
terser(),
license(getBanner(pkg)),
],
Expand All @@ -75,7 +69,7 @@ if (process.env.BUILD !== 'development') {
plugins: [
resolve(),
commonjs(),
typescript({ tsconfig: '../../tsconfig.json' }),
typescript(tsConfig),
license(getBanner(pkg)),
],
}
Expand Down

0 comments on commit 915064c

Please sign in to comment.