Skip to content

Attempt to fix babel plugin - #43

Merged
developit merged 10 commits into
custom-jsx-parserfrom
babel-plugin-fix-redux
Dec 20, 2018
Merged

developit merged 10 commits into
custom-jsx-parserfrom
babel-plugin-fix-redux

Conversation

@developit

Copy link
Copy Markdown
Owner

Might be simpler than #35 if it works!

@jviide jviide left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks like a good approach to fix the Babel plugin (much better than #35).

Comment thread packages/babel-plugin-htm/index.mjs Resolved
Comment thread packages/babel-plugin-htm/index.mjs Resolved
Comment thread test/babel.test.mjs Outdated
).toBe(`var name="world",vnode={type:1,tag:"div",props:{id:"hello"},children:[{type:3,tag:null,props:null,children:null,text:"hello, "},name],text:null};`);
});

test('preserves placeholder-looking strings in attributes and text', () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe this test could be removed, as the old string replacement based approach is no longer used?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

yup.

@developit
developit merged commit 15eff25 into custom-jsx-parser Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants