Skip to content

Commit

Permalink
Fix issue due to tragic pnpm bug around CSS imports
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed May 15, 2024
1 parent 30d1ccc commit 1e777e4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
2 changes: 2 additions & 0 deletions example/standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"jsdom": "^24.0.0",
"mobx": "^6.12.3",
"mobx-react": "8",
"normalize.css": "^8.0.1",
"prettier": "^2",
"react": "^18.3.1",
Expand Down
17 changes: 12 additions & 5 deletions example/standalone/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/standalone/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import "normalize.css/normalize.css";
// @import "@wcrichto/quiz/dist/lib.scss";
@import "@wcrichto/quiz/dist/lib.scss";
2 changes: 0 additions & 2 deletions js/packages/quiz/src/lib.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "@wcrichto/rust-editor/dist/lib.css";

$mobile-cutoff: 800px;

@mixin mobile {
Expand Down
2 changes: 2 additions & 0 deletions js/packages/quiz/src/lib.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "@wcrichto/rust-editor/dist/lib.css";

export * from "./questions/mod";
export * from "./components/quiz";
export * from "./components/snippet";
Expand Down

0 comments on commit 1e777e4

Please sign in to comment.