chore: shoosh

This commit is contained in:
cha0s 2022-04-01 08:35:47 -05:00
parent 1f01189143
commit 6107296baf
4 changed files with 24 additions and 4 deletions

View File

@ -49,7 +49,12 @@ module.exports = async (flecks) => {
'.json',
]);
// Reporting.
config.stats(flecks.get('@flecks/server.stats'));
config.stats({
...flecks.get('@flecks/server.stats'),
warningsFilter: [
/Failed to parse source map/,
],
});
// Outputs.
config.output
.path(options.output)

View File

@ -16,6 +16,11 @@ module.exports = (flecks) => (neutrino) => {
host: devHost,
port: devPort || (port + 1),
public: devPublic,
stats: devStats,
stats: {
...devStats,
warningsFilter: [
/Failed to parse source map/,
],
},
}));
};

View File

@ -65,7 +65,12 @@ module.exports = async (flecks) => {
config.resolve.modules
.merge([join(FLECKS_CORE_ROOT, 'node_modules')]);
// Reporting.
config.stats(flecks.get('@flecks/web/server.stats'));
config.stats({
...flecks.get('@flecks/web/server.stats'),
warningsFilter: [
/Failed to parse source map/,
],
});
}
},
],

View File

@ -137,7 +137,12 @@ module.exports = async (flecks) => {
config.resolve.modules
.merge([join(FLECKS_CORE_ROOT, 'node_modules')]);
// Reporting.
config.stats(flecks.get('@flecks/web/server.stats'));
config.stats({
...flecks.get('@flecks/web/server.stats'),
warningsFilter: [
/Failed to parse source map/,
],
});
// Inline the main entrypoint (nice for FCP).
config
.plugin('inline-chunks')