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

consolidate more policy parsing code #764

Open
boneskull opened this issue Nov 22, 2023 · 0 comments
Open

consolidate more policy parsing code #764

boneskull opened this issue Nov 22, 2023 · 0 comments
Labels
chore overhead, tests, dev env, etc.

Comments

@boneskull
Copy link
Contributor

Find the Venn diagram of parseForPolicy between lavamoat-node, webpack, and core. Move whatever is possible either a) in to core or b) extract it into its own module.

I think (but am likely wrong) this mostly boils down to implementing an importHook function, in parseForPolicy() terms. It may be difficult to tease things apart using this API, however, as these implementations are far from trivial. If we're able, it might be worth attempting to split up or consider something other than a callback-based API.

@boneskull boneskull added the chore overhead, tests, dev env, etc. label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore overhead, tests, dev env, etc.
Projects
None yet
Development

No branches or pull requests

1 participant