Skip to content

Commit dccf94a

Browse files
authored
feat: build extension as module instead of commonJS (#1581)
Signed-off-by: Philippe Martin <[email protected]>
1 parent 22287a0 commit dccf94a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/backend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
"description": "Podman AI Lab lets you work with LLMs locally, exploring AI fundamentals, experimenting with models and prompts, and serving models while maintaining data security and privacy.",
55
"version": "1.3.0-next",
66
"icon": "icon.png",
7+
"type": "module",
78
"publisher": "redhat",
89
"license": "Apache-2.0",
910
"engines": {
1011
"podman-desktop": ">=1.8.0"
1112
},
12-
"main": "./dist/extension.js",
13+
"main": "./dist/extension.cjs",
1314
"contributes": {
1415
"configuration": {
1516
"title": "AI Lab",

packages/backend/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const config = {
5353
...builtinModules.flatMap(p => [p, `node:${p}`]),
5454
],
5555
output: {
56-
entryFileNames: '[name].js',
56+
entryFileNames: '[name].cjs',
5757
},
5858
},
5959
emptyOutDir: true,

0 commit comments

Comments
 (0)