Skip to content

v3.0.0

Choose a tag to compare

@illright illright released this 18 Mar 23:11
· 10 commits to main since this release
2e00dbd

This release adds support for having several index files, useful in full-stack frameworks that shouldn't mix client and server imports.

Changed

  • The isIndex function now recognizes dot-separated strings like index.client.js as valid index files, as long as the part until the first dot is index.

Added

  • The getIndexes function, similar to the previously existing getIndex, but now returning Array<File> instead of File | undefined

Removed

  • The getIndex function, that would either return a single index file or undefined has been removed in favor of getIndexes