Skip to content

Commit a200690

Browse files
authored
Merge pull request #9087 from processing/webgpu-build
Add webgpu build back to rolldown config
2 parents b580b68 + 47c7da9 commit a200690

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

rolldown.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,27 @@ export default defineConfig([
7070
// })
7171
]
7272
},
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+
})),
7394
//// ESM source build ////
7495
{
7596
input: Object.fromEntries(

0 commit comments

Comments
 (0)