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

Add .mjs to webpack config for supporting AWS amplify #37

Closed
1 task
SokichiFujita opened this issue Dec 28, 2019 · 1 comment
Closed
1 task

Add .mjs to webpack config for supporting AWS amplify #37

SokichiFujita opened this issue Dec 28, 2019 · 1 comment
Assignees

Comments

@SokichiFujita
Copy link
Owner

SokichiFujita commented Dec 28, 2019

Currently if aws-amplify is added, then this (Compile error with webpack 4) issue will be occurred.

To resolve this issue, developer have to add .mjs in the top extensions section of webpack.common.js like extensions: [".mjs", ".ts", ".tsx", ".js", ".jsx"].

Amplify is a major platform to deploy a React app. Thus .mjs should be automatically added in the top of extension section of a webpack configuration.

Todo

  • Add .mjs in the top of extensions section of webpack.common.js
@SokichiFujita
Copy link
Owner Author

Before supporting this issue, please apply https://github.com/SokichiFujita/starter-react-flux/wiki/AWS-Amplify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant