Skip to content

Commit 7d22baa

Browse files
Copilotllastflowers
andcommitted
Fix ESM compatibility: replace require('sass') with ESM import in main.js
Co-authored-by: llastflowers <55068883+llastflowers@users.noreply.github.com>
1 parent fc5c014 commit 7d22baa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/.storybook/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sass from 'sass'
2+
13
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
24
const config = {
35
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
@@ -12,7 +14,7 @@ const config = {
1214
name: '@storybook/addon-styling',
1315
options: {
1416
sass: {
15-
implementation: require('sass'),
17+
implementation: sass,
1618
},
1719
},
1820
},

0 commit comments

Comments
 (0)