Initial global DFL support

This commit is contained in:
AAGaming 2023-05-11 21:58:30 -04:00 committed by TrainDoctor
commit 6e254656ef
No known key found for this signature in database
GPG key ID: FFABB0E08B5CEDD9

View file

@ -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',