how may i use es6 imports in auth0 hooks? i seriously can’t believe this isn’t available by default. its 2019.
I just reached out to the team responsible for hooks to ask if it’s doable! Let me confirm it in a few moments!
Great! looking forward to hearing what they say!
Hey there @dryhurst again!
While there may be some old deprecated hacks to support this, our extensibility team responsible for hooks would strongly discourage this.
The explanation is that ES Modules are still behind a flag in Node. We do not intend to add any tooling to the runtime to support ES Modules until they are natively supported. You are free to transpile your hook code from whatever format you want before saving it.
Fair point. Thank you.
No worries! We’re here for you!
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.