-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
Given the following input
// main.js
import { g } from './g.js';
/* @__NO_SIDE_EFFECTS__ */
function f(a) { console.log('function_f' + a) }
function h(a) { console.log('function_h' + a) }
f('removeThisCall_1')
g('removeThisCall_2')
h('keepThisCall_3')// g.js
/* @__NO_SIDE_EFFECTS__ */
function g(a) { console.log('function_g' + a) }
export { g }I expected g('removeThisCall_2') to be removed in the final output, but esbuild still keeps it.
-
Expected behavior (rollup):
-
Acutall behavior (esbuild):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels