Skip to content

Commit

Permalink
docs: remove import keyword in example (#3311)
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy authored Aug 29, 2024
1 parent 8a79ff6 commit acb9015
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/en/config/source/transform-import.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ The `transformImport` can be a function, it will accept the previous value, and
export default {
source: {
transformImport: (imports) => {
return imports.filter(import => import.libraryName !== 'antd');
return imports.filter((data) => data.libraryName !== 'antd');
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/config/source/transform-import.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export default {
export default {
source: {
transformImport: (imports) => {
return imports.filter(import => import.libraryName !== 'antd');
return imports.filter((data) => data.libraryName !== 'antd');
},
},
};
Expand Down

0 comments on commit acb9015

Please sign in to comment.