1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-29 17:37:21 +03:00
tabby/tabby-terminal/webpack.config.mjs

23 lines
518 B
JavaScript
Raw Normal View History

import * as path from 'path'
import * as url from 'url'
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
import config from '../webpack.plugin.config.mjs'
export default () => {
const cfg = config({
name: 'terminal',
dirname: __dirname,
externals: [
'opentype.js',
],
rules: [
{
test: /lib[\\/]xterm-addon-image-worker.js$/i,
type: 'asset/source',
},
],
})
return cfg
}