Skip to content

Commit 28f429b

Browse files
committed
fix: remove automatic styleguide CSS import for Turbopack compatibility
1 parent 2b74481 commit 28f429b

4 files changed

Lines changed: 4932 additions & 3113 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pnpm-debug.log*
2020
lerna-debug.log*
2121

2222
node_modules
23+
.yarn/cache
2324
dist
2425
*.local
2526

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"module": "dist/index.js",
1515
"types": "dist/index.d.ts",
1616
"exports": {
17-
".": "./dist/index.js"
17+
".": "./dist/index.js",
18+
"./styleguide/styles.css": "./dist/styleguide/styles.css"
1819
},
1920
"scripts": {
2021
"build": "yarn clean && yarn ts:compile && yarn babel:compile && yarn styleguide:build",

src/styleguide/Layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use client';
22

3-
import './styles.css';
43
import Link from 'next/link';
54
import { useState } from 'react';
65
import { StyleguideContent } from '../types';

0 commit comments

Comments
 (0)