Skip to content

Commit a66e031

Browse files
authored
Merge pull request #65 from rostalan/main
Switch to ESModule
2 parents 77b478f + 82cd5a3 commit a66e031

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

podman-desktop-extension/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"icon": "icon.png",
77
"publisher": "redhat",
88
"license": "Apache-2.0",
9+
"type": "module",
910
"engines": {
1011
"podman-desktop": "^1.6.3"
1112
},
12-
"main": "./dist/extension.js",
13+
"main": "./dist/extension.cjs",
1314
"contributes": {
1415
"configuration": {}
1516
},
+5-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
22
"compilerOptions": {
33
"lib": ["ES2017", "webworker"],
4+
"module": "ESNext",
5+
"target": "ESNext",
46
"sourceMap": true,
57
"rootDir": "src",
68
"outDir": "dist",
79
"skipLibCheck": true,
8-
"types": ["node"]
10+
"types": ["node"],
11+
"moduleResolution": "Node",
12+
"esModuleInterop": true
913
},
1014
"include": ["src"]
1115
}

podman-desktop-extension/vite.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const config = {
5151
...builtinModules.flatMap(p => [p, `node:${p}`]),
5252
],
5353
output: {
54-
entryFileNames: '[name].js',
54+
entryFileNames: '[name].cjs',
5555
},
5656
},
5757
emptyOutDir: true,

0 commit comments

Comments
 (0)