add image support to builder-manager

This commit is contained in:
Norbert de Langen 2022-08-03 13:32:11 +02:00
parent 4ee407b4d0
commit c321fa0eac
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762

View File

@ -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,