mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 20:01:08 +08:00
Revert all source-loader usage due to failing CI builds
This commit is contained in:
parent
1c9d23ab13
commit
2702b3580e
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
module.exports = async ({ config }) => {
|
module.exports = async ({ config }) => {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: [/\.stories\.js$/, /index\.js$/],
|
test: [/\.stories\.js$/, /index\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../')],
|
include: [path.resolve(__dirname, '../')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
module.exports = async ({ config }) => {
|
module.exports = async ({ config }) => {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: [/\.stories\.js$/, /index\.js$/],
|
test: [/\.stories\.js$/, /index\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../stories')],
|
include: [path.resolve(__dirname, '../stories')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
module.exports = async ({ config }) => {
|
module.exports = async ({ config }) => {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: [/\.stories\.js$/],
|
test: [/\.stories\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../src')],
|
include: [path.resolve(__dirname, '../src')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
module.exports = async ({ config }) => {
|
module.exports = async ({ config }) => {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: [/\.stories\.js$/],
|
test: [/\.stories\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../src')],
|
include: [path.resolve(__dirname, '../src')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
});
|
});
|
||||||
|
@ -42,7 +42,7 @@ module.exports = async ({ config }) => ({
|
|||||||
test: /\.stories\.[tj]sx?$/,
|
test: /\.stories\.[tj]sx?$/,
|
||||||
use: [
|
use: [
|
||||||
{
|
{
|
||||||
loader: require.resolve('@storybook/source-loader'),
|
loader: require.resolve('@storybook/addon-storysource/loader'),
|
||||||
options: { injectParameters: true },
|
options: { injectParameters: true },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -4,7 +4,7 @@ const webpack = require('webpack');
|
|||||||
module.exports = async ({ config }) => {
|
module.exports = async ({ config }) => {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: [/\.stories\.js$/, /index\.js$/],
|
test: [/\.stories\.js$/, /index\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../src')],
|
include: [path.resolve(__dirname, '../src')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
module.exports = ({ config }) => {
|
module.exports = ({ config }) => {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: [/\.stories\.js$/],
|
test: [/\.stories\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../src')],
|
include: [path.resolve(__dirname, '../src')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
});
|
});
|
||||||
|
@ -5,7 +5,7 @@ module.exports = {
|
|||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: [/\.stories\.js$/, /index\.js$/],
|
test: [/\.stories\.js$/, /index\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../src')],
|
include: [path.resolve(__dirname, '../src')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
module.exports = async ({ config }) => {
|
module.exports = async ({ config }) => {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: [/\.stories\.js$/, /index\.js$/],
|
test: [/\.stories\.js$/, /index\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../src')],
|
include: [path.resolve(__dirname, '../src')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
module.exports = async ({ config }) => {
|
module.exports = async ({ config }) => {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: [/\.stories\.js$/, /index\.js$/],
|
test: [/\.stories\.js$/, /index\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../src')],
|
include: [path.resolve(__dirname, '../src')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
});
|
});
|
||||||
|
@ -3,7 +3,7 @@ const path = require('path');
|
|||||||
module.exports = async ({ config }) => {
|
module.exports = async ({ config }) => {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: [/\.stories\.js$/, /index\.js$/],
|
test: [/\.stories\.js$/, /index\.js$/],
|
||||||
loaders: [require.resolve('@storybook/source-loader')],
|
loaders: [require.resolve('@storybook/addon-storysource/loader')],
|
||||||
include: [path.resolve(__dirname, '../src')],
|
include: [path.resolve(__dirname, '../src')],
|
||||||
enforce: 'pre',
|
enforce: 'pre',
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user