Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
Benchmarks Rust |
CodSpeed Performance ReportMerging #1933 will degrade performances by 17.69%Comparing Summary
Benchmarks breakdown
|
|
Any idea about why performance get down so much even we don't use inject? ---edited Besides adding skipping logic, even we do a full-ast traverse with empty options, it shouldn't slow that much. This PR adds a almost full-ast traverse pass, but have little affection. |
inject imports
| assert.strictEqual(P, 'promise-shim') | ||
| assert.strictEqual($, 'jquery') | ||
| assert.strictEqual(fs.default, 'node-fs') | ||
| // FIXME: oxc injects invalid statements `import { default as 'Object.assign' from 'object-assign-shim'` }`, so it fails. |
There was a problem hiding this comment.
@Boshen cc
There is a bug here.
I take a rough look
oxc transform to the following code
import { default as 'Object.assign'} from 'object-assign-shim'`This is invalid js code.
while it should be
import { default as Object_assign} from 'object-assign-shim'`or
import Object_assign from 'object-assign-shim'`
This is because semantic is now run for each file in this file, where previously its only run for ts or jsx files. |
This PR adds the missing pieces for inject plugin.