Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add re-export of functions in index file in a module #573

Open
basmasking opened this issue Dec 19, 2024 · 0 comments
Open

Add re-export of functions in index file in a module #573

basmasking opened this issue Dec 19, 2024 · 0 comments
Labels
feature New feature or request

Comments

@basmasking
Copy link
Member

Currently, we don't support re-exporting functions through an index file in a module.

In our access-protection example, I added an index file to only export the checkSecret function to be called from other modules.

export { default as checkSecret } from './checkSecret.js';

As we consider it good practice to use the index file, we should also support this practice when using jitar.

@basmasking basmasking added the feature New feature or request label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant