mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 01:01:06 +08:00
Revert "Try fix missing typescript in JS-only project"
This reverts commit 10cfadd627569ccc02b179c9ba3c271d02913744.
This commit is contained in:
parent
fde61fc0f3
commit
024e8a75a5
@ -17,12 +17,6 @@ export const webpack: StorybookConfig['webpack'] = async (config, { presets }) =
|
||||
});
|
||||
config.module.rules.push({
|
||||
test: /\.ts$/,
|
||||
// This exclude & its .tsx counterpart below is a hack
|
||||
// for storybook's sandboxing setup, which uses .ts
|
||||
// story files that get processed by esbuild-loader.
|
||||
// This rule is too permissive, but since we don't know
|
||||
// the user's project setup, it's hard to make it specific!
|
||||
exclude: [/template-stories/],
|
||||
use: [
|
||||
{
|
||||
loader: require.resolve('ts-loader'),
|
||||
@ -35,7 +29,6 @@ export const webpack: StorybookConfig['webpack'] = async (config, { presets }) =
|
||||
});
|
||||
config.module.rules.push({
|
||||
test: /\.tsx$/,
|
||||
exclude: [/template-stories/],
|
||||
use: [
|
||||
{
|
||||
loader: require.resolve('ts-loader'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user