-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
next.config.js
27 lines (23 loc) · 781 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// const ModuleFederationPlugin = require('webpack/lib/container/ModuleFederationPlugin');
module.exports = ({
webpack: function (config) {
config.module.rules.push({
test: /\.md$/,
use: 'raw-loader'
})
// config.plugins.push(new ModuleFederationPlugin({
// name: 'federated_libraries',
// library: { type: 'var', name: 'federated_libraries' },
// filename: 'remoteEntry.js',
// exposes: {
// AppShell: './components/app-shell',
// ArticlePage: './components/article-page',
// Hero: './components/hero',
// },
// shared: ['react', 'react-dom', 'next'],
// }));
// config.resolve.alias.buffer = 'buffer';
// config.resolve.alias.path = 'path-browserify';
return config
}
})