Skip to content

Conversation

@theKashey
Copy link
Owner

@theKashey theKashey commented Dec 29, 2019

Problem: If file contains only one imported signature then importedWrapper could be inlined into that single use case. As a result the code in the file, and the code in async-imports would be different - #166

The fix: more importedWrapper to react-imported-component/wrapper


Problem: terser optimization might mangle importedWrapper(no matter how it's defined) differently. As a result the code in the file, and the code in async-imports would be different.

The fix: signature would replace any XXX("imported_ to the same result, making usage cases "the same".

});

it('work similar for similar functions', () => {
expect(getFunctionSignature(() => a('imported_XXYY_component'))).toBe(
Copy link
Owner Author

Choose a reason for hiding this comment

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

the main fix :)

@theKashey theKashey merged commit 288bdaf into master Mar 14, 2020
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