Search code examples
bundlerparceljs

Scope hoisting/tree shaking in parcel V2


Do I need to specify the experimental scope hoisting/tree shaking flag (in parcel 2.0) to use tree shaking?

parcel build entry.js --experimental-scope-hoisting

Or tree shaking is not longer a experimental feature in parcel 2.0?


Solution

  • As mentioned in this article regarding Parcel v2 beta 1 (which was released on June 18th, 2020), tree shaking is enabled by default