Revert "Docs: Raw support for mjs, jsx, and tsx files"

This commit is contained in:
Norbert de Langen 2023-11-28 17:02:20 +01:00 committed by GitHub
parent d932d4f094
commit 0b644643e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 32 deletions

View File

@ -1,7 +0,0 @@
import React, { Fragment } from 'react';
export const MY_VALUE_I_WANT_TO_SHOW_IN_STORY = 'Hello World!';
export const RawSource = () => {
return <Fragment>{MY_VALUE_I_WANT_TO_SHOW_IN_STORY}</Fragment>;
};

View File

@ -1,15 +0,0 @@
import { RawSource as RawSourceComponent } from './RawSource.jsx';
// eslint-disable-next-line import/no-unresolved
import RawSourceCode from './RawSource.jsx?raw';
export const RawSource = RawSourceComponent.bind({});
RawSource.parameters = {
docs: {
source: {
code: RawSourceCode,
language: 'tsx',
type: 'code',
},
},
};

View File

@ -1,9 +0,0 @@
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs';
import * as stories from './raw-source.non-stories';
import { RawSource } from './RawSource';
<Meta component={RawSource} />
<Canvas>
<Story story={stories.RawSource} />
</Canvas>

View File

@ -20,7 +20,6 @@ export const createBabelLoader = async (
options: babelOptions,
},
],
resourceQuery: { not: [/raw/] },
include: [getProjectRoot()],
exclude: [/node_modules/, ...excludes],
};