mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
fixes
This commit is contained in:
parent
232c36fa2d
commit
d547a12415
@ -25,5 +25,19 @@ export const webpackFinal: StorybookConfig['webpack'] = (config, { presetsList }
|
||||
checkForNewPreset(presetsList);
|
||||
}
|
||||
}
|
||||
config.module?.rules?.push(
|
||||
...[
|
||||
{
|
||||
test: /\.m?js$/,
|
||||
type: 'javascript/auto',
|
||||
},
|
||||
{
|
||||
test: /\.m?js$/,
|
||||
resolve: {
|
||||
fullySpecified: false,
|
||||
},
|
||||
},
|
||||
]
|
||||
);
|
||||
return config;
|
||||
};
|
||||
|
@ -34,7 +34,10 @@
|
||||
"require": "./package.json",
|
||||
"import": "./package.json",
|
||||
"types": "./package.json"
|
||||
}
|
||||
},
|
||||
"./templates/HOC.svelte": "./templates/HOC.svelte",
|
||||
"./templates/PreviewRender.svelte": "./templates/PreviewRender.svelte",
|
||||
"./templates/SlotDecorator.svelte": "./templates/SlotDecorator.svelte"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
|
Loading…
x
Reference in New Issue
Block a user