We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aac472e commit cb518c7Copy full SHA for cb518c7
βdocs/api/ast-utils.mdβ
@@ -363,6 +363,7 @@ The side effect means that it *may* modify a certain variable or object member.
363
- `AssignmentExpression`
364
- `AwaitExpression`
365
- `CallExpression`
366
+- `ImportExpression`
367
- `NewExpression`
368
- `UnaryExpression` (`[operator = "delete"]`)
369
- `UpdateExpression`
βsrc/has-side-effect.jsβ
@@ -83,6 +83,9 @@ const visitor = Object.freeze(
83
FunctionExpression() {
84
return false
85
},
86
+ ImportExpression() {
87
+ return true
88
+ },
89
MemberExpression(node, options, visitorKeys) {
90
if (options.considerGetters) {
91
return true
0 commit comments