fix #4507: `import` assignment tree-shaking bug