peertube-theme-nctv-dark/peertube-plugin-video-annot.../scripts/esbuild.js

20 lines
499 B
JavaScript
Raw Normal View History

2023-02-06 09:09:42 +00:00
const esbuild = require('esbuild')
const { externalGlobalPlugin } = require('esbuild-plugin-external-global')
for (const file of [ 'embed-client-plugin.js', 'video-edit-client-plugin.js', 'video-watch-client-plugin.js' ]) {
esbuild.build({
entryPoints: [ 'client/' + file ],
bundle: true,
minify: false,
format: 'esm',
outfile: 'dist/' + file,
target: [ 'safari11' ],
plugins: [
externalGlobalPlugin({
'video.js': 'window.videojs'
})
]
})
}