PSI think you can use .mjs extension to tell JavaScript engine that this file is ESM module not a script file. but I think setting type: module in package.json is better optionReply·Article·Sep 16, 2021·Why you should avoid CommonJs on your client-side javascript
PSthank you so much for your kind words.Reply·Article·Sep 14, 2021·Getting Started With React using Vite.js