Skip to content

Commit

Permalink
module federation
Browse files Browse the repository at this point in the history
  • Loading branch information
DileSoft committed Dec 12, 2024
1 parent bf40546 commit a4c9fce
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src-editor/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ const makeShared = pkgs => {

export default defineConfig({
plugins: [
federation( {
name: 'iobroker_javascript',
shared: makeShared([
'react', 'react-dom', '@mui/material', '@mui/styles', '@mui/icons-material', 'prop-types', '@iobroker/adapter-react-v5', 'react-ace',
]),
exposes: {},
remotes: {},
filename: 'remoteEntry.js',
}),
react(),
vitetsConfigPaths(),
commonjs(),
Expand All @@ -28,14 +37,6 @@ export default defineConfig({
'src/**/*.svg',
],
}),
federation( {
name: 'iobroker_javascript',
remotes: {
},
shared: makeShared([
'react', 'react-dom', '@mui/material', '@mui/styles', '@mui/icons-material', 'prop-types', '@iobroker/adapter-react-v5', 'react-ace',
]),
})
],
server: {
port: 3000
Expand Down

0 comments on commit a4c9fce

Please sign in to comment.