Closed madhavgharmalkar closed 1 year ago
Could you share your vite config? It looks like it might be a misconfiguration
I just realized my error. I've removed the lib
entries and it seems to work. Thanks!
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { crx } from "@crxjs/vite-plugin";
import manifest from "./manifest";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte(), crx({ manifest })],
build: {
lib: {
entry: {
background: "./src/background.ts",
content_script: "./src/content_script.ts",
},
name: "background",
},
},
});
Build tool
Vite
Where do you see the problem?
Describe the bug
I'm unable to build an application with
yarn vite build
. I've attached some debugging output below. It seems that in some instancesmanifest.json
is parsed withuse strict
in the beginning which causes it to fail.Reproduction
I'm unable to publish a repo because it's company code, I can send it via a private message.
Logs
Severity
blocking all usage of RPCE