rspack
rspack copied to clipboard
fix: should insert semi after import, export, debugger and class field
Summary
Checklist
ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#automatic_semicolon_insertion and acorn (search this.semicolon()
)
But I dont know how to construct the test case for ClassField
closes https://github.com/web-infra-dev/rspack/issues/7527
- [ ] Tests updated (or not required).
- [ ] Documentation updated (or not required).