We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f53992 commit 2f4709cCopy full SHA for 2f4709c
src/index.js
@@ -7,6 +7,11 @@ module.exports = ({template, types}) => {
7
let pluginOptions
8
const ExportsDefaultVisitor = {
9
AssignmentExpression (path) {
10
+ // Not `object.anything`, skip
11
+ if (!path.get('left.object').node) {
12
+ return
13
+ }
14
+
15
const name = `${path.get('left.object.name').node}.${path.get(`left.property.name`).node}`
16
if (name === 'exports.default') {
17
const finder = new ExportsFinder(path)
0 commit comments