Skip to content

Commit

Permalink
fix oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed May 23, 2022
1 parent 0fbc7d5 commit a09b1e3
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions bin/build-lib.js
Expand Up @@ -115,22 +115,6 @@ async function buildLib () {
transformJSXImportsToJS(path)
}
},

/**
* Removes all `[Symbol.for('uppy test: …')]` methods when building.
*
* @param {{ node: t.ClassMethod }} path
*/
// eslint-disable-next-line no-shadow
ClassMethod (path) {
const { key, computed } = path.node
if (computed && key.type === 'CallExpression' && key.callee.type === 'MemberExpression' && key.callee.object.name === 'Symbol' && key.callee.property.name === 'for' && key.arguments.length === 1) {
const { arguments: [{ type, value }] } = path.node.key
if (type === 'Literal' && value.startsWith('uppy test: ')) {
path.remove()
}
}
},
},
}] : undefined
const { code, map } = await babel.transformFileAsync(file, { sourceMaps: true, plugins })
Expand Down

0 comments on commit a09b1e3

Please sign in to comment.