mirror of
https://github.com/tradingview/lightweight-charts.git
synced 2024-11-25 16:50:59 +08:00
080aa9aa52
It allows to minify everything aren't exported to the public space, so it reduces bundle size a lot (by several KB which is several % in min.gz)
21 lines
384 B
JavaScript
21 lines
384 B
JavaScript
// @ts-check
|
|
|
|
/** @type import('dts-bundle-generator/config-schema').BundlerConfig */
|
|
const config = {
|
|
compilationOptions: {
|
|
preferredConfigPath: './tsconfig.prod.json',
|
|
},
|
|
entries: [
|
|
{
|
|
filePath: './lib/prod/src/index.d.ts',
|
|
outFile: './dist/typings.d.ts',
|
|
output: {
|
|
sortNodes: true,
|
|
respectPreserveConstEnum: true,
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
module.exports = config;
|