-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Closed
Description
Feature request
support destructuring in:
- EnvironmentPlugin, DefinePlugin, ImportMetaPlugin (partial support?), other plugins?
- Treeshake dynamic imports based on destructuring #16872
- support destructuring assignment in parser #16941 treeshaking when using namespace object, e.g.
import * as b from 'b';const {a} = b; - json treeshaking, e.g.
import b from '1.json'; const {a} = b;
What is the expected behavior?
Webpack should support destructuring on parser level
What is motivation or use case for adding/changing the behavior?
Modern versions of runtime environments (browsers, Node.js, Deno) support destructuring
How should this be implemented in your opinion?
JavascriptParser should be improved
Are you willing to work on this yourself?
yes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
Priority - High