feat: make file picker embeddable
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { build } from 'esbuild';
|
||||
|
||||
const shared = {
|
||||
entryPoints: ['upload/frontend/index.js'],
|
||||
bundle: true,
|
||||
minify: false,
|
||||
sourcemap: false,
|
||||
logLevel: 'info',
|
||||
};
|
||||
|
||||
await build({
|
||||
...shared,
|
||||
format: 'esm',
|
||||
outfile: 'dist/file-picker.esm.js',
|
||||
});
|
||||
|
||||
await build({
|
||||
...shared,
|
||||
format: 'iife',
|
||||
globalName: 'FilePicker',
|
||||
outfile: 'dist/file-picker.iife.js',
|
||||
});
|
||||
Reference in New Issue
Block a user