Skip to content

Commit

Permalink
build: 修改编译配置
Browse files Browse the repository at this point in the history
  • Loading branch information
duan602728596 committed Dec 18, 2023
1 parent 6efb1a3 commit bbdd92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/48tools/sweet.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const externalsName: Array<string> = nodeModules([

export default function(info: object): Record<string, any> {
const plugins: Array<any> = [
'@babel/plugin-syntax-import-assertions',
['@babel/plugin-syntax-import-attributes', { deprecatedAssertSyntax: true }],
!isDev && ['transform-react-remove-prop-types', { mode: 'remove', removeImport: true }],
['@48tools/babel-plugin-delay-require', { moduleNames: externalsName, idle: true }]
].filter(Boolean);
Expand Down

0 comments on commit bbdd92a

Please sign in to comment.