mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-15 05:02:24 +08:00
Revert "Docs: Raw support for mjs
, jsx
, and tsx
files"
This commit is contained in:
parent
d932d4f094
commit
0b644643e5
@ -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>;
|
||||
};
|
@ -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',
|
||||
},
|
||||
},
|
||||
};
|
@ -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>
|
@ -20,7 +20,6 @@ export const createBabelLoader = async (
|
||||
options: babelOptions,
|
||||
},
|
||||
],
|
||||
resourceQuery: { not: [/raw/] },
|
||||
include: [getProjectRoot()],
|
||||
exclude: [/node_modules/, ...excludes],
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user