chrome-extension-template-preact-vite
chrome-extension-template-preact-vite copied to clipboard
Uncaught SyntaxError: Cannot use import statement outside a module
If one module is imported by more than two module, Vite (or say rollup) will not include the source code to the output file -- in other words: remain import
sentence there:
import { p as aModule } from "../../assets/aModule.0b895f6d.js";
It looks like chrome extension runtime do not support import
on the fly, will get error:
Uncaught SyntaxError: Cannot use import statement outside a module
any Idea?
Thank you for your contribution. We will check and reply to you as soon as possible.