How to compile a project properly with Babel and Grunt
问题 I'm trying to play with Babel, but it doesn't work well for me. My project is simple |-project/ |---src/ |-----index.html |-----main.js |-----module.js |---Gruntfile.js |---package.json index.html <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>Test</title> <script src="main.js" type="application/javascript"></script> </head> <body> <p>Simple html file.</p> </body> </html> main.js import * as math from "./module"; async function anwser() { return 42; } (function main() {