Skip to content

Commit

Permalink
Updated tsdx congfig
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Nov 9, 2022
1 parent d91b1af commit ffe4b5c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tsdx.config.js
Expand Up @@ -6,18 +6,19 @@ module.exports = {
rollup(config, options) {
(config.plugins = [
...config.plugins,
postcss({ plugins: [] }),
babel({
babelrc: false,
plugins: [
[
'import',
{ libraryName: 'antd', libraryDirectory: 'es', style: true },
],
],
plugins: [['import', { libraryName: 'antd', style: true }]],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
exclude: 'node_modules/**',
}),
postcss({
extensions: ['.css', '.scss', '.less'],
use: [
'sass',
['less', { javascriptEnabled: true }],
],
}),
]),
(config.plugins = config.plugins.map((plugin) =>
plugin.name === 'replace'
Expand Down

0 comments on commit ffe4b5c

Please sign in to comment.