Skip to content

Commit 8c1563e

Browse files
authored
Release 8.0.3 (#70)
## What's changed * fix: add sassOptions.outputStyle to expanded in rspack.config.js (#65) * deps: remove @storybook/addon-mdx-gfm as it breaks the build (#68) * feat: allow setting devtool=false (#69)
2 parents afb89c4 + 7528e64 commit 8c1563e

File tree

3 files changed

+2204
-2846
lines changed

3 files changed

+2204
-2846
lines changed

config/rspack.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = (webpackEnv, argv) => {
3131
}
3232

3333
const isDevServerOnly = env.dev_server_only?.toLowerCase() === 'true';
34+
const devtool = (env.devtool?.toLowerCase() === 'false' ? false : env.devtool) || (isEnvDevelopment ? 'eval-cheap-module-source-map' : 'source-map');
3435
const isReactRefresh = isDevServer && isEnvDevelopment;
3536

3637
const now = new Date();
@@ -92,7 +93,7 @@ module.exports = (webpackEnv, argv) => {
9293
mode,
9394
// Logging noise constrained to errors and warnings
9495
stats: 'errors-warnings', // { logging: 'verbose', timings: true, assets: true },
95-
devtool: isEnvDevelopment ? 'cheap-module-source-map' : 'source-map',
96+
devtool,
9697
// These are the "entry points" to our application.
9798
// This means they will be the "root" imports that are included in JS bundle.
9899
entry: Object.fromEntries(
@@ -105,6 +106,9 @@ module.exports = (webpackEnv, argv) => {
105106
? {
106107
static: path.resolve(workspacePath, 'bundles'),
107108
compress: true,
109+
// Explicitly set hot to true and liveReload to false to ensure that hot is preferred over liveReload
110+
hot: true,
111+
liveReload: false,
108112
// Explicitly set the host to ipv4 local address to ensure that the dev server is reachable from the host machine: https://github.com/cypress-io/cypress/issues/25397
109113
host: '127.0.0.1',
110114
open: true,
@@ -333,6 +337,9 @@ module.exports = (webpackEnv, argv) => {
333337
loader: 'sass-loader',
334338
options: {
335339
sourceMap: true, // <-- !!IMPORTANT!!
340+
sassOptions: {
341+
outputStyle: 'expanded', // @see https://github.com/FortAwesome/Font-Awesome/issues/17644#issuecomment-1703318326
342+
},
336343
},
337344
},
338345
],

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visyn_scripts",
33
"description": "",
4-
"version": "8.0.2",
4+
"version": "8.0.3",
55
"author": {
66
"name": "datavisyn GmbH",
77
"email": "[email protected]",
@@ -42,7 +42,6 @@
4242
"@storybook/addon-essentials": "^7.6.17",
4343
"@storybook/addon-interactions": "^7.6.17",
4444
"@storybook/addon-links": "^7.6.17",
45-
"@storybook/addon-mdx-gfm": "^7.6.17",
4645
"@storybook/addon-styling": "^1.3.7",
4746
"@storybook/addon-styling-webpack": "^0.0.6",
4847
"@storybook/cli": "^7.6.17",

0 commit comments

Comments
 (0)