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

[bindgen] Adding Browser/WASM target to bindgen #5525

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

nhachicha
Copy link
Contributor

Rebase of #5497 on top of current bindgen branch

@cla-bot cla-bot bot added the cla: yes label Mar 2, 2023
@nhachicha nhachicha changed the base branch from master to bindgen March 2, 2023 14:54
@@ -25,12 +25,15 @@ export function generate({ spec: rawSpec, file }: TemplateContext): void {
const spec = doJsPasses(bindModel(rawSpec));
const reactLines = [];
const nodeLines = [];
function both(content: string) {
const browserLines = [];
Copy link
Member

@kraenhansen kraenhansen Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this pattern and the direction this is going. This file should be refactored into multiple files with separated concerns (one per platform) before this PR lands to separate node from react-native. @RedBeard0531 we've talked about this before and I believe you had a plan for it?

@nhachicha nhachicha changed the title Nh/wasm/rebased bindgen [bindgen] Adding Browser/WASM target to bindgen Mar 3, 2023
Base automatically changed from bindgen to master March 3, 2023 14:05
@nhachicha nhachicha force-pushed the nh/wasm/rebased_bindgen branch 2 times, most recently from 8ee86e5 to 6dd5018 Compare March 11, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants