chrome-extension-template-preact-vite icon indicating copy to clipboard operation
chrome-extension-template-preact-vite copied to clipboard

Uncaught SyntaxError: Cannot use import statement outside a module

Open delai opened this issue 2 years ago • 1 comments

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?

delai avatar Sep 28 '22 09:09 delai

Thank you for your contribution. We will check and reply to you as soon as possible.

github-actions[bot] avatar Sep 28 '22 09:09 github-actions[bot]