node-filing-cabinet icon indicating copy to clipboard operation
node-filing-cabinet copied to clipboard

Add getLookup() API to allow composing custom lookup from internal lookup

Open rmunch opened this issue 1 year ago • 2 comments

Proposing to add a getLookup API. For my use case, I have some proprietary paths in a stylesheet that are not handled by existing lookups. While I can register a custom lookup to resolve these proprietary paths, I only need to handle certain of those paths, and want to defer the rest to existing lookups. Currently, the tsLookup and some others aren't exported - rather than exporting those, I thought this solution could be more flexible and future-proof if new internal lookups are added.

If this looks desirable, I can do another pass to update docs. Thanks!

rmunch avatar Feb 12 '25 23:02 rmunch

Please make sure tests pass, CI didn't run here for some reason.

XhmikosR avatar Jun 16 '25 06:06 XhmikosR

@rmunch please update the docs to mention the change, thanks.

XhmikosR avatar Jun 26 '25 14:06 XhmikosR