Skip to content

Commit e1786d3

Browse files
committed
buld: makes code modular and adds esbuild for building project
1 parent 846a1d5 commit e1786d3

8 files changed

Lines changed: 712 additions & 224 deletions

File tree

frontend/content.js

Lines changed: 0 additions & 221 deletions
This file was deleted.

frontend/manifest.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "CodeTranslateAI",
44
"version": "1.1.0",
5-
"description": "Select code on a page and get instant AI-powered translations in a clean, tabbed interface.",
5+
"description": "Select code on a page and get instant AI-powered translation.",
66
"author": "Dinesh Kumar Sutihar",
77
"permissions": ["activeTab", "storage"],
88
"host_permissions": ["https://*.workers.dev/"],
@@ -25,12 +25,13 @@
2525
"content_scripts": [
2626
{
2727
"matches": ["<all_urls>"],
28-
"js": ["packages/prism.js", "content.js"],
28+
"js": ["packages/prism.js", "dist/content.bundle.js"],
2929
"css": ["styles.css"]
3030
}
3131
],
3232
"background": {
33-
"service_worker": "background.js"
33+
"service_worker": "background.js",
34+
"type": "module"
3435
},
3536
"web_accessible_resources": [
3637
{

0 commit comments

Comments
 (0)