Recently, I've been facing an issue while trying to develop my web application using Brunch. The problem arises from a specific npm package called animated-vue, which consists of sources programmed in ES2016.
After adding this package as a dependency and attempting to build my project, an error message pops up:
Processing of node_modules/animated-vue/src/index.js failed. SyntaxError: 'import' and 'export' may only appear at the top level (5:4)
This error indicates that the module is not being transpiled by Babel, even though Babel is included as one of my devDependencies.
If anyone has suggestions or insights on how to resolve this issue, I would greatly appreciate your help.
Below are excerpts from my brunch-config.js file and package.json for reference:
[Contents of brunch-config.js]
[Contents of package.json]
If you have any ideas on what might be causing this problem or how to fix it, please feel free to share.
Thank you in advance for your assistance!