Skip to content

Commit

Permalink
add objExp TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsonChan committed Oct 10, 2024
1 parent 33ea34a commit f1a0240
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions babel-plugin-expose-private-functions-and-variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,11 @@ module.exports = function ({types: t}) {
}

function objExp(objectPath) {
// ObjectExpression (properties)
// TODO: split properties into 3 types (ObjectMethod | ObjectProperty | SpreadElement) of functions to handle

objectPath.node.properties.forEach((property) => {
// TODO: dfs
const {value} = property;
// TODO: key ?
// case: x = { x: FUNC } -> x = { x: window.PACKAGE._.FUNC }
Expand Down

0 comments on commit f1a0240

Please sign in to comment.