This commit is contained in:
phidias authored and GitHub committed 2026-10-09 18:22:56 +09:00
1 parent ef5d18a171
commit b56904e8ae
13 files changed
+296 -222

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
'use strict';
const path = require('path');
const webpack = require('webpack');
const { merge } = require('webpack-merge');
const common = require('@clusterio/web_ui/webpack.common');
module.exports = (env = {}, argv = {}) => merge(common(env, argv), {
context: __dirname,
entry: './web/index.tsx',
output: {
path: path.resolve(__dirname, 'dist', 'web'),
},
plugins: [
new webpack.container.ModuleFederationPlugin({
name: 'ClusterChatSync',
library: {type: 'var', name: 'plugin_ClusterChatSync'},
exposes: {
'./': './index.ts',
'./package.json': './package.json'
},
shared: {
'@clusterio/lib': {import: false},
'@clusterio/web_ui': {import: false},
},
}),
],
});