mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-11-03 07:42:25 -06:00
Initial global DFL support
This commit is contained in:
parent
ecb45e71f1
commit
6e254656ef
1 changed files with 5 additions and 4 deletions
|
|
@ -24,12 +24,13 @@ export default defineConfig({
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
context: 'window',
|
context: 'window',
|
||||||
external: ['react', 'react-dom'],
|
external: ["react", "react-dom", "decky-frontend-lib"],
|
||||||
output: {
|
output: {
|
||||||
file: 'dist/index.js',
|
file: "dist/index.js",
|
||||||
globals: {
|
globals: {
|
||||||
react: 'SP_REACT',
|
react: "SP_REACT",
|
||||||
'react-dom': 'SP_REACTDOM',
|
"react-dom": "SP_REACTDOM",
|
||||||
|
"decky-frontend-lib": "DFL"
|
||||||
},
|
},
|
||||||
format: 'iife',
|
format: 'iife',
|
||||||
exports: 'default',
|
exports: 'default',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue