There was an error while loading. Please reload this page.
2 parents b580b68 + 47c7da9 commit a200690Copy full SHA for a200690
1 file changed
rolldown.config.js
@@ -70,6 +70,27 @@ export default defineConfig([
70
// })
71
]
72
},
73
+ //// Addon module builds (e.g. WebGPU) ////
74
+ ...['webgpu'].map(module => ({
75
+ input: `src/${module}/index.js`,
76
+ output: [
77
+ {
78
+ file: `./lib/p5.${module}.js`,
79
+ format: 'iife'
80
+ },
81
82
+ file: `./lib/p5.${module}.min.js`,
83
+ format: 'iife',
84
+ minify: true
85
86
87
+ file: `./lib/p5.${module}.esm.js`,
88
+ format: 'esm'
89
+ }
90
+ ],
91
+ external: ['../core/main'],
92
+ plugins
93
+ })),
94
//// ESM source build ////
95
{
96
input: Object.fromEntries(
0 commit comments