Skip to content

Commit 3cc74c0

Browse files
committed
Fix playroom setup
1 parent 796f532 commit 3cc74c0

File tree

3 files changed

+22
-29
lines changed

3 files changed

+22
-29
lines changed

packages/bento-design-system/playroom.config.cjs

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ const { ProvidePlugin } = require("webpack");
33
const { ESBuildMinifyPlugin } = require("esbuild-loader");
44

55
module.exports = {
6-
components: "../storybook/stories/index.tsx",
7-
typeScriptFiles: ["../storybook/stories/index.tsx"],
6+
components: "./src/index.ts",
87
outputPath: "./dist/playroom",
98
title: "Bento 🍱",
109
widths: [320, 425, 768, 1024, 1440, 2560],
@@ -34,7 +33,9 @@ module.exports = {
3433
{
3534
test: /\.css$/,
3635
use: ["style-loader", "css-loader"],
37-
exclude: /node_modules/,
36+
exclude: (modulePath) => {
37+
return /node_modules/.test(modulePath) && !modulePath.includes("@fontsource");
38+
},
3839
},
3940
],
4041
},

packages/bento-design-system/playroom/FrameComponent.tsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { Box, BentoProvider } from "../../storybook/stories";
1+
import * as React from "react";
2+
import { Box, BentoProvider } from "../src";
3+
import "../src/reset.css";
4+
import "../src/global.css";
5+
import "../src/defaultTheme.css";
6+
import "@fontsource/ibm-plex-sans/400.css";
7+
import "@fontsource/ibm-plex-sans/500.css";
8+
import "@fontsource/ibm-plex-sans/600.css";
29
import { defaultMessages } from "../../storybook/stories/defaultMessages";
310

411
export default function FrameComponent({ theme, children }) {

pnpm-lock.yaml

+10-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)