Replies: 1 comment 2 replies
-
|
You need corejs polyfill, and if you want to transpile the code, there’s no tool I know of that supports such tranpilation |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe I'm just not understanding something, but I've reduced this to a test case and want to figure out what's going on.
swc test.js -C jsc.target=ES2015outputs the same code, despite
Object.hasOwnnot being valid in ES2015. I tested with every valid target and got the same result. I also tested with-C env.targets.chrome=21, and with those configs in .swcrc instead of on the command line, with no change in results.Beta Was this translation helpful? Give feedback.
All reactions