Skip to content

Commit 518c408

Browse files
authored
fix: rspack type loader (#92309)
it needs the same changes as the webpack one
1 parent d088e3b commit 518c408

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

rspack.config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ const SHOULD_FORK_TS = DEV_MODE && !env.NO_TS_FORK; // Do not run fork-ts plugin
7272
const SHOULD_HOT_MODULE_RELOAD = DEV_MODE && !!env.SENTRY_UI_HOT_RELOAD;
7373
const SHOULD_ADD_RSDOCTOR = Boolean(env.RSDOCTOR);
7474

75-
// Storybook related flag configuration
76-
const STORYBOOK_TYPES = Boolean(env.STORYBOOK_TYPES) || IS_PRODUCTION;
77-
7875
// Deploy previews are built using vercel. We can check if we're in vercel's
7976
// build process by checking the existence of the PULL_REQUEST env var.
8077
const DEPLOY_PREVIEW_CONFIG = IS_DEPLOY_PREVIEW && {
@@ -382,9 +379,7 @@ const appConfig: Configuration = {
382379

383380
resolveLoader: {
384381
alias: {
385-
'type-loader': STORYBOOK_TYPES
386-
? path.resolve(__dirname, 'static/app/stories/type-loader.ts')
387-
: path.resolve(__dirname, 'static/app/stories/noop-type-loader.ts'),
382+
'type-loader': path.resolve(__dirname, 'static/app/stories/type-loader.ts'),
388383
},
389384
},
390385

0 commit comments

Comments
 (0)