-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: switch to oxc-parser. #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import rspack from '@rspack/core' | ||
|
|
||
| globalThis.__MCL_BUNDLER__ = rspack | ||
| globalThis.__MCL_BUNDLER_NAME__ = 'rspack' | ||
|
|
||
| await import('./loader.spec.js') |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,18 +1,9 @@ | ||||||
| export default { | ||||||
| collectCoverage: true, | ||||||
| collectCoverageFrom: ['**/src/**/*.js', '!**/node_modules/**'], | ||||||
| coverageProvider: 'babel', | ||||||
| coverageProvider: 'v8', | ||||||
| coverageReporters: ['json', 'lcov', 'clover', 'text', 'text-summary'], | ||||||
| modulePathIgnorePatterns: ['dist'], | ||||||
| /** | ||||||
| * Use alternative runner to circumvent segmentation fault when | ||||||
| * webpack's node.js API uses dynamic imports while running | ||||||
| * jest's v8 vm context code. | ||||||
| * | ||||||
| * @see https://github.com/nodejs/node/issues/35889 | ||||||
| * @see https://github.com/nodejs/node/issues/25424 | ||||||
| */ | ||||||
| runner: 'jest-light-runner', | ||||||
| testMatch: ['**/__tests__/**/*.spec.js'], | ||||||
| testMatch: ['**/__tests__/**/*.spec.js', '**/__tests__/parser.js'], | ||||||
|
||||||
| testMatch: ['**/__tests__/**/*.spec.js', '**/__tests__/parser.js'], | |
| testMatch: ['**/__tests__/**/*.spec.js'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test name says it "parses 2023 ecmascript", but
src/parser.jsno longer pins an ECMA version (it relies onoxc-parserdefaults). Consider updating the test description to avoid implying a fixed ECMA version, or explicitly configuring the parser to the intended target.