Skip to content

Commit

Permalink
chore: rm global scss dts
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Apr 2, 2024
1 parent 0aa9aca commit 03ecc37
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 37 deletions.
3 changes: 1 addition & 2 deletions src/components/base/base-dialog.module.scss.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import globalClassNames from "../../style.d";
declare const classNames: typeof globalClassNames & {
declare const classNames: {
readonly basePageTransition: "basePageTransition";
readonly "MuiDialog-paper": "MuiDialog-paper";
};
Expand Down
3 changes: 2 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/// <reference types="vite/client" />
/// <reference types="vite-plugin-svgr/client" />
import "./assets/styles/index.scss";

import { ResizeObserver } from "@juggle/resize-observer";
if (!window.ResizeObserver) {
window.ResizeObserver = ResizeObserver;
}

import { Routes } from "@generouted/react-router/lazy";
import React from "react";
import { createRoot } from "react-dom/client";
import { Routes } from "@generouted/react-router/lazy";
import { RecoilRoot } from "recoil";
import "./services/i18n";
const container = document.getElementById("root")!;
Expand Down
3 changes: 1 addition & 2 deletions src/pages/_app.module.scss.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import globalClassNames from "../style.d";
declare const classNames: typeof globalClassNames & {
declare const classNames: {
readonly oops: "oops";
readonly dark: "dark";
};
Expand Down
22 changes: 0 additions & 22 deletions src/style.d.ts

This file was deleted.

11 changes: 1 addition & 10 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default defineConfig(({ command }) => {
css: {
preprocessorOptions: {
scss: {
additionalData: `@use "@/styles" as common;`,
importer(...args) {
if (args[0] !== "@/styles") {
return;
Expand All @@ -35,15 +34,7 @@ export default defineConfig(({ command }) => {
svgr(),
react(),
generouted(),
sassDts({
enabledMode: ["development", "production"],
global: {
generate: true,
outputFilePath: path.resolve(__dirname, "./src/style.d.ts"),
},
sourceDir: path.resolve(__dirname, "./src"),
outputDir: path.resolve(__dirname, "./dist"),
}),
sassDts(),
monaco({ languageWorkers: ["editorWorkerService", "typescript"] }),
],
esbuild: {
Expand Down

0 comments on commit 03ecc37

Please sign in to comment.