Revert all source-loader usage due to failing CI builds

This commit is contained in:
Michael Shilman 2019-06-26 17:52:57 +08:00
parent 1c9d23ab13
commit 2702b3580e
11 changed files with 11 additions and 11 deletions

View File

@ -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',
}); });

View File

@ -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',
}); });

View File

@ -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',
}); });

View File

@ -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',
}); });

View File

@ -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 },
}, },
], ],

View File

@ -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',
}); });

View File

@ -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',
}); });

View File

@ -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',
}, },

View File

@ -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',
}); });

View File

@ -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',
}); });

View File

@ -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',
}); });