Skip to content

Commit

Permalink
chore: 打包入口补充tsx文件类型
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Jul 12, 2024
1 parent db93686 commit 6b95578
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ const banner = `/**
`;

const input = 'src/index.ts';
const inputList = ['src/**/*.ts', 'src/**/*.vue', '!src/**/demos', '!src/**/*.d.ts', '!src/**/__tests__'];
const inputList = [
'src/**/*.ts',
'src/**/*.vue',
'src/**/*.tsx',
'!src/**/demos',
'!src/**/*.d.ts',
'!src/**/__tests__',
];

const getPlugins = ({
env,
Expand Down Expand Up @@ -132,6 +139,7 @@ const cssConfig = {
assetFileNames: '[name].css',
},
};

/** @type {import('rollup').RollupOptions} */
const esConfig = {
input: inputList.concat('!src/index-lib.ts'),
Expand Down

0 comments on commit 6b95578

Please sign in to comment.