Skip to content

Commit b8ea298

Browse files
committed
add secure context and notifications support
1 parent cdd30b1 commit b8ea298

File tree

5 files changed

+248
-159
lines changed

5 files changed

+248
-159
lines changed

example/vite.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
// example vite configuration
22

3-
import { buildXDC, eruda, mockWebxdc, legacy } from "@webxdc/vite-plugins";
3+
import {
4+
buildXDC,
5+
eruda,
6+
mockWebxdc,
7+
legacy,
8+
secureContext, // https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts
9+
} from "@webxdc/vite-plugins";
410
import { defineConfig } from "vite";
511

612
// https://vitejs.dev/config/
713
export default defineConfig({
8-
plugins: [buildXDC(), eruda(), mockWebxdc(), legacy()],
14+
plugins: [buildXDC(), eruda(), mockWebxdc(), legacy(), secureContext()],
915
});

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@
3333
"check": "prettier --check ."
3434
},
3535
"dependencies": {
36-
"@vitejs/plugin-legacy": "^5.4.3",
36+
"@vitejs/plugin-basic-ssl": "^1.1.0",
37+
"@vitejs/plugin-legacy": "^6.0.0",
3738
"eruda": "^3.4.1",
3839
"terser": "^5.36.0",
3940
"vite-plugin-zip-pack": "^1.2.4"
4041
},
4142
"devDependencies": {
42-
"prettier": "3.3.3"
43+
"prettier": "3.3.3",
44+
"vite": "^6.0.0"
4345
}
4446
}

0 commit comments

Comments
 (0)