Saw this comment in the `supertokens-node` codebase: ```js /** * 'export *' does not re-export a de...
i
Saw this comment in the
supertokens-node
codebase:
Copy code
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,
Copy code
ts
export { default as EXPORT_NAME } from "./FILE_PATH";
is valid. Of course, that has to be placed alongside an
export *
statement.
Copy code
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.