Browse Source

Stop publishing source maps for the JS framework packages (#1634)

pull/1639/head
Paweł Kuna 6 days ago
committed by GitHub
parent
commit
9fba485e75
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      .build/rollup-plugins.mjs
  2. 8
      packages/icons-solidjs/rollup.config.js

5
.build/rollup-plugins.mjs

@ -84,7 +84,10 @@ export const getRollupConfig = (pkg, outputFileName, bundles, globals) => {
`${outputDir}/${format}/${outputFileName}${minify ? '.min' : ''}.${extension}`,
}),
format,
sourcemap: true,
// The output is not minified and mostly generated icon modules, so
// source maps add little for debugging but would be about 70% of
// the published package size.
sourcemap: false,
preserveModules,
preserveModulesRoot: 'src',
globals,

8
packages/icons-solidjs/rollup.config.js

@ -1,8 +1,14 @@
import withSolid from 'rollup-preset-solid';
export default withSolid({
const config = withSolid({
// The .tsx extension makes the Solid source condition emit JSX for Vite to compile.
input: 'src/tabler-icons-solidjs.tsx',
targets: ['esm', 'cjs'],
printInstructions: false,
});
// The preset always emits source maps; like the other packages, Solid ships
// without them (see `.build/rollup-plugins.mjs`).
config.output = config.output.map((output) => ({ ...output, sourcemap: false }));
export default config;

Loading…
Cancel
Save