Skip to content

Commit 4eb19fa

Browse files
committed
Back to SCSS
1 parent b7fcf1b commit 4eb19fa

File tree

6 files changed

+31
-4
lines changed

6 files changed

+31
-4
lines changed

globals.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module "*.scss";

package-lock.json

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"devDependencies": {
2525
"@parcel/optimizer-swc": "^2.8.0",
2626
"@parcel/packager-ts": "^2.8.0",
27+
"@parcel/transformer-inline-string": "^2.8.0",
2728
"@parcel/transformer-sass": "^2.8.0",
2829
"@parcel/transformer-typescript-types": "^2.8.0",
2930
"@storybook/addon-actions": "^6.5.13",

src/GithubContributions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { FunctionComponent, useEffect, useState } from "react";
22
import { Loader } from "./Loader";
3+
import "./container.scss";
34

45
const GithubContributions: FunctionComponent<{ username: string }> = ({
56
username,

src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import GithubContributions from "./GithubContributions";
22

3-
import cssText from "bundle-text:./container.scss";
4-
console.log(cssText);
5-
63
export { GithubContributions };
74
export default GithubContributions;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"include": ["src", "index.ts"],
2+
"include": ["src", "index.ts", "globals.d.ts"],
33
"compilerOptions": {
44
"isolatedModules": true,
55
"jsx": "react",

0 commit comments

Comments
 (0)