-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
playroom.config.js
36 lines (35 loc) · 893 Bytes
/
playroom.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import path from 'path'
export default {
components: './components.ts',
outputPath: './storybook-static/playroom',
exampleCode: '<Button />',
openBrowser: false,
// Webpack loaders/presets are transitive Playroom dependencies
webpackConfig: () => ({
module: {
rules: [
{
test: /\.tsx?$/i,
include: path.resolve(import.meta.dirname, 'src'),
use: [
{
loader: 'babel-loader',
options: {
presets: [
'@babel/preset-env',
'@babel/preset-react',
'@babel/preset-typescript',
],
},
},
],
},
{
test: /\.css$/i,
include: path.resolve(import.meta.dirname, 'src'),
use: ['style-loader', 'css-loader'],
},
],
},
}),
}