Shamelessly copied @JedWatson's babel-plugin-object-assign for Object.is. Am I missing something? Is it this easy? https://github.com/nhunzaker/babel-plugin-object-is …
@natehunzaker @jedwatson This is gonna break pretty badly... An identifier is an AST node, it doesn't represent arbitrary JavaScript.
-
-
@natehunzaker@jedwatson You'd need to construct it manually with t.callExpression(t.identifier("require"), [t.literal("object-is")]) -
@sebmck@JedWatson Ah and the source map works perfectly! This so so cool.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 