You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESM is natively supported by modern JavaScript engines and browsers. If SuperTokens moves away from CJS to ESM, we can migrate our React projects from react-scripts to more modern tools like vite.
We migrated our project to vite with the help of viject. We had to manually replace require("reactRouterDom") with import * as reactRouterDom from "reactRouterDom".
Implementation details
Modify create-supertokens-app to use vite instead of react-scripts.
Ensure all the examples use ESM (import and import()) and not CJS (require and require())
The text was updated successfully, but these errors were encountered:
🚀 Feature
ESM is natively supported by modern JavaScript engines and browsers. If SuperTokens moves away from CJS to ESM, we can migrate our React projects from
react-scripts
to more modern tools likevite
.Implementation details
create-supertokens-app
to usevite
instead ofreact-scripts
.import
andimport()
) and not CJS (require
andrequire()
)The text was updated successfully, but these errors were encountered: