Skip to content

Commit

Permalink
Fix sourcemaps for Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed May 24, 2024
1 parent a579b28 commit c106a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/lib/csf-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const unplugin = createUnplugin<CsfPluginOptions>((options) => {
webpack(compiler) {
compiler.options.module.rules.unshift({
test: STORIES_REGEX,
enforce: 'pre',
enforce: 'post',
use: {
options,
loader: require.resolve('@storybook/csf-plugin/dist/webpack-loader'),
Expand All @@ -28,7 +28,7 @@ export const unplugin = createUnplugin<CsfPluginOptions>((options) => {
rspack(compiler) {
compiler.options.module.rules.unshift({
test: STORIES_REGEX,
enforce: 'pre',
enforce: 'post',
use: {
options,
loader: require.resolve('@storybook/csf-plugin/dist/webpack-loader'),
Expand Down

0 comments on commit c106a52

Please sign in to comment.