Background.ts is not included in the Dist build #982
Unanswered
lewiskyron
asked this question in
Q&A
Replies: 1 comment
-
What version you're using? Could you provide a reproduction? Best if a public github repo with just this setup. I'm using beta version of crxjs on production with content_script and background.js without any ptoblems background: {
service_worker: 'src/entrypoints/serviceWorker/serviceWorkerScript.ts',
},
permissions: ['alarms', 'storage', 'cookies', 'webRequest'], Maybe you could try to compare it with my template repo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m preparing to submit my extension to the Chrome Web Store, but when I inspect the dist folder, the background script isn’t there. I’m not sure if this is expected behavior or if it indicates a misconfiguration in my setup. Below is how I am loading the
background.ts
in my manifest.json locally:"background": { "service_worker": "src/chrome-services/utils/background.ts", "type": "module" },
However this is what I see in the dist folder:
"background": { "service_worker": "service-worker-loader.js", "type": "module" },
Locally the code is working however I cannot seem to see the background script in the dist folder. For more context I am seeking guidance on this since my extension keeps getting rejected for using the
tabs permission
which I am using to roll out my authentication. According to Google this is not being used and I believe they are claiming this since the background script is nowhere to be seen in the dist folder. Thanks in advanceBeta Was this translation helpful? Give feedback.
All reactions