We are migrating our CRA + SuperTokens app to Vite...
# general
g
We are migrating our CRA + SuperTokens app to Vite + SuperTokens. This tool (https://github.com/bhbs/viject) gave us a lot of head start with this migration. One issue we're having to resolve ourselves is SuperTokens' use of CJS dynamic require(). Any plans to move SuperTokens React variant (examples and create-supertokens-app) to use Vite?
r
hey @gopi_65986 not at the moment. But if you open an issue about it, and enough people show interest, we can work on it. In the meantime, i think you can use .js in the imports to make it work
g
import * as reactRouterDom from "react-router-dom";
works. Opened #973 as a feature request. (https://github.com/supertokens/supertokens-core/issues/973)
5 Views