mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-12-16 18:33:02 -06:00
Initial commit
This commit is contained in:
commit
52f6ca1c58
8 changed files with 2679 additions and 0 deletions
28
rollup.config.js
Normal file
28
rollup.config.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
import { defineConfig } from 'rollup';
|
||||
|
||||
export default defineConfig({
|
||||
input: './src/index.tsx',
|
||||
plugins: [
|
||||
commonjs(),
|
||||
nodeResolve(),
|
||||
typescript(),
|
||||
replace({
|
||||
preventAssignment: false,
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
}),
|
||||
],
|
||||
context: 'window',
|
||||
external: ['react', 'react-dom'],
|
||||
output: {
|
||||
file: 'dist/example-plugin.js',
|
||||
globals: {
|
||||
react: 'SP_REACT',
|
||||
},
|
||||
format: 'iife',
|
||||
exports: 'default',
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue