@gravity-ui/app-builder 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -605,7 +605,7 @@ function configurePlugins(options) {
|
|
|
605
605
|
ignoreOrder: true,
|
|
606
606
|
}));
|
|
607
607
|
if (config.sentryConfig) {
|
|
608
|
-
const sentryPlugin = require('@sentry/webpack-plugin');
|
|
608
|
+
const sentryPlugin = require('@sentry/webpack-plugin').sentryWebpackPlugin;
|
|
609
609
|
plugins.push(sentryPlugin({ ...config.sentryConfig }));
|
|
610
610
|
}
|
|
611
611
|
if (config.analyzeBundle === 'true') {
|
|
@@ -50,8 +50,15 @@ async function configureServiceWebpackConfig(mode, storybookConfig) {
|
|
|
50
50
|
options = serviceConfig.client;
|
|
51
51
|
}
|
|
52
52
|
const webpackConfig = await configureWebpackConfigForStorybook(mode, options, storybookConfig.module?.rules);
|
|
53
|
+
let devtool = storybookConfig.devtool;
|
|
54
|
+
// storybook uses `cheap-module-source-map` and it's incompatible with `CssMinimizerWebpackPlugin`
|
|
55
|
+
// also don't change devtool if it's disabled
|
|
56
|
+
if (mode === "production" /* WebpackMode.Prod */ && devtool) {
|
|
57
|
+
devtool = 'source-map';
|
|
58
|
+
}
|
|
53
59
|
return {
|
|
54
60
|
...storybookConfig,
|
|
61
|
+
devtool,
|
|
55
62
|
plugins: [...(storybookConfig.plugins ?? []), ...webpackConfig.plugins],
|
|
56
63
|
resolve: {
|
|
57
64
|
...storybookConfig.resolve,
|