mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 01:10:42 +08:00
- Re-setup karma / jasmine tests -- Fix tsconfig paths -- Remove no longer needed view and field test imports -- Add test app-shell specific test command -- Add karma/jasmine specific webpack configuration
42 lines
853 B
JavaScript
42 lines
853 B
JavaScript
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
|
|
const mf = require("@angular-architects/module-federation/webpack");
|
|
const path = require("path");
|
|
|
|
const sharedMappings = new mf.SharedMappings();
|
|
sharedMappings.register(
|
|
path.join(__dirname, '../../../tsconfig.json'),
|
|
[]);
|
|
|
|
module.exports = {
|
|
output: {
|
|
uniqueName: "shell"
|
|
},
|
|
optimization: {
|
|
// Only needed to bypass a temporary bug
|
|
runtimeChunk: false
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.m?js/,
|
|
resolve: {
|
|
fullySpecified: false
|
|
}
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new ModuleFederationPlugin({
|
|
|
|
remotes: {},
|
|
|
|
shared: {
|
|
"@angular/core": {singleton: true},
|
|
"@angular/common": {singleton: true},
|
|
"@angular/router": {singleton: true},
|
|
|
|
}
|
|
|
|
}),
|
|
],
|
|
};
|