Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
crates/rolldown/tests/esbuild/dce/tree_shaking_binary_operators/artifacts.snap
Show resolved
Hide resolved
crates/rolldown/tests/esbuild/default/mangle_quoted_props_minify_syntax/artifacts.snap
Show resolved
Hide resolved
Benchmarks Rust |
|
This issue could be closed #3245 |
Ignore me, for this case: (() => {
const foo = () => {
};
/* #__PURE__ */ foo();
})();both, |
2e93868 to
4a2311c
Compare
|
@sapphi-red got a new bug,
|
`(a => { a() })()` should not be inlined (requires checking default parameters).
this PR should fix the case written in rolldown/rolldown#3725 (comment) .
`(a => { a() })()` should not be inlined (requires checking default parameters).
this PR should fix the case written in rolldown/rolldown#3725 (comment) .
|
It's almost done. Next failure is the test where we need to propagate this option to the minifier 🤔 ? Shall we disable this test in this PR, and raise a tracking issue so we don't block everything? |
LGTM |
import type { OutputChunk as RolldownOutputChunk } from 'rolldown'
import { defineTest } from 'rolldown-tests'
import { expect } from 'vitest'
export default defineTest({
skip: true,
config: {
treeshake: {
annotations: false,
},
},
afterTest: (output) => {
output.output
.filter(({ type }) => type === 'chunk')
.forEach((chunk) => {
let code = (chunk as RolldownOutputChunk).code
expect(code.includes(`hello`)).toBe(true)
})
},
})YOu could skip the test in this way. |
669675d to
7e823d4
Compare
|
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
No description provided.