Skip to content

Commit

Permalink
Merge pull request #13 from elpendor/main
Browse files Browse the repository at this point in the history
Use global DFL
  • Loading branch information
davocarli authored May 28, 2024
2 parents 588b1f4 + fdfa0ef commit b06da6e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@reduxjs/toolkit": "^1.8.6",
"axios": "^1.1.2",
"decky-frontend-lib": "^3.22.0",
"decky-frontend-lib": "^3.25.0",
"react-icons": "^4.4.0",
"react-redux": "^8.0.4"
},
Expand Down
12 changes: 8 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ export default defineConfig({
})
],
context: 'window',
external: ['react', 'react-dom'],
external: ['react', 'react-dom','decky-frontend-lib'],
output: {
file: 'dist/index.js',
globals: {
react: 'SP_REACT',
'react-dom': 'SP_REACTDOM',
'decky-frontend-lib': 'DFL',
},
format: 'iife',
exports: 'default',
Expand Down

0 comments on commit b06da6e

Please sign in to comment.