diff --git a/code/lib/builder-manager/src/index.ts b/code/lib/builder-manager/src/index.ts index 785a2b9d595..a3fd5fa18c7 100644 --- a/code/lib/builder-manager/src/index.ts +++ b/code/lib/builder-manager/src/index.ts @@ -39,7 +39,13 @@ export const getConfig: ManagerBuilder['getConfig'] = async (options) => { outdir: join(options.outputDir || './', 'sb-addons'), format: 'esm', outExtension: { '.js': '.mjs' }, - loader: { '.js': 'jsx' }, + loader: { + '.js': 'jsx', + '.png': 'file', + '.jpg': 'file', + '.jpeg': 'file', + '.svg': 'file', + }, target: ['chrome100'], platform: 'browser', bundle: true,