Skip to content

Commit

Permalink
feat: 内部声明
Browse files Browse the repository at this point in the history
  • Loading branch information
MrpandaLiu committed Feb 27, 2023
1 parent 54bb555 commit 8b43eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-rax-compat/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ const plugin: Plugin<CompatRaxOptions> = (options = {}) => ({
config.swcOptions = merge(config.swcOptions || {}, {
compilationConfig: (source: string) => {
const isRaxComponent = /from\s['"]rax['"]/.test(source);
const hasJSXComment = source.indexOf('@jsx createElement') !== -1;
if (isRaxComponent) {
const hasJSXComment = source.indexOf('@jsx createElement') !== -1;
if (hasJSXComment) {
return {
jsc: {
Expand Down

0 comments on commit 8b43eb4

Please sign in to comment.