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

Order of the import statements changes #280

Open
yp opened this issue Oct 26, 2018 · 0 comments
Open

Order of the import statements changes #280

yp opened this issue Oct 26, 2018 · 0 comments

Comments

@yp
Copy link

yp commented Oct 26, 2018

As far as I can tell, the plugin changes the order of the imports.
This can cause an issue when, for example, you load polyfills (for IE11) and antd in the same file, since the the transformed imports go to the top of the transpiled file (thus before the polyfills) and, since antd imports react before the polyfills are loaded, we have the issue described here.

Is it possible to "rewrite" the imports in the same order of the original file? If not, is it possible to document this behavior?

yesmeck added a commit that referenced this issue Nov 4, 2020
Close

- #245
- #420
- #423
- #344
- #342
- #432
- #436
- #331
- #324
- #311
- #297
- #296
- #286
- #282
- #280
- #239
- #172
@yesmeck yesmeck mentioned this issue Nov 4, 2020
yesmeck added a commit that referenced this issue Nov 4, 2020
Close

- #245
- #420
- #423
- #344
- #342
- #432
- #436
- #331
- #324
- #311
- #297
- #296
- #286
- #282
- #280
- #239
- #172
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

No branches or pull requests

1 participant