Skip to content

Conversation

@theianjones
Copy link
Contributor

resolves #3

party

@texastoland
Copy link

texastoland commented Jan 22, 2022

@theianjones I liked your implementation too 👏🏼 Look for my review inline.

@theianjones
Copy link
Contributor Author

@texastoland I dont see a review

src/index.js Outdated
delete child.name;
}
else {
} else {

Choose a reason for hiding this comment

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

Do you not have the Prettier extension installed? Make sure to add an .editorconfig to keep tabs (you mixed them throughout).

src/index.js Outdated
Comment on lines 12 to 16
if(obj[name]){
obj[name] = [obj[name], child].flat()
} else {
obj[name] = child;
}

Choose a reason for hiding this comment

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

I might not have thought of flat 🤩

Suggested change
if(obj[name]){
obj[name] = [obj[name], child].flat()
} else {
obj[name] = child;
}
obj[name] = obj[name] ? [obj[name], child].flat() : child

test/index.js Outdated
Comment on lines 14 to 24
<entry path="src/index.js" />
<resolve>
<alias from="react-dom" to="preact-compat" />
</resolve>
<plugins>
<uglify-js opts={{
compression: true,
mangle: false,
}} />
<CustomPlugin foo="bar" />
</plugins>

Choose a reason for hiding this comment

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

Unintentional whitespace changes hurt the diff.

Comment on lines +9 to +18
"alias": [
{
"from": "react",
"to": "preact-compat"
},
{
"from": "react-dom",
"to": "preact-compat"
}
]

Choose a reason for hiding this comment

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

Readme needs updated too 👏🏼

@developit developit merged commit 3604adb into developit:master Mar 25, 2022
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.

Support Array of Attributes

3 participants