Skip to content

升级 rsbuild 到 0.7.x #8

@sorrycc

Description

@sorrycc

没升上去,因为遇到问题如下:

start   Compiling...
error   Compile error:
Failed to compile, check the errors for troubleshooting.
File: /Users/chencheng/Documents/Code/github.com/umijs/benchmark/projects/turbopack-test-app/src/comps/triangle.jsx:1:1
  × Module build failed:
  ├─▶   ×
  │     │   x Expression expected
  │     │     ,-[/Users/chencheng/Documents/Code/github.com/umijs/benchmark/projects/turbopack-test-app/src/comps/triangle.jsx:21:1]
  │     │  21 |     }
  │     │  22 | }, [EFFECT_PROPS]);
  │     │  23 |
  │     │  24 |     return <>
  │     │     :             ^
  │     │  25 |         <g transform="translate(0 -2.16)   scale(0.5 0.5)">
  │     │  26 |             <A style={style} />
  │     │  27 |         </g>
  │     │     `----
  │     │
  │     │   x Expected '>', got 'transform'
  │     │     ,-[/Users/chencheng/Documents/Code/github.com/umijs/benchmark/projects/turbopack-test-app/src/comps/triangle.jsx:22:1]
  │     │  22 | }, [EFFECT_PROPS]);
  │     │  23 |
  │     │  24 |     return <>
  │     │  25 |         <g transform="translate(0 -2.16)   scale(0.5 0.5)">
  │     │     :            ^^^^^^^^^
  │     │  26 |             <A style={style} />
  │     │  27 |         </g>
  │     │  28 |         <g transform="translate(-2.5 2.16) scale(0.5 0.5)">
  │     │     `----
  │     │
  │
  ╰─▶ Syntax Error
  help: File was processed with this loader: 'builtin:swc-loader??ruleSet[1].rules[2].use[0]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions