ITEnthusiasm
05/11/2024, 4:06 PMsupertokens-node
codebase:
js
/**
* 'export *' does not re-export a default.
* import NextJS from "supertokens-node/nextjs";
* the above import statement won't be possible unless either
* - user add "esModuleInterop": true in their tsconfig.json file
* - we do the following change:
*/
If it's of any interest,
ts
export { default as EXPORT_NAME } from "./FILE_PATH";
is valid. Of course, that has to be placed alongside an export *
statement.
ts
export * from "./FILE_PATH";
export { default as EXPORT_NAME } from "./FILE_PATH";
Not sure what the context of the comment was, so that might not help anything. Just figured it was worth noting just in case.