-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove build & prettier leftovers - prettier v3 uses .gitignore - we dont use Emotion transform - fix icon sample keys - etc
- Loading branch information
Showing
15 changed files
with
76 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
dist | ||
bin | ||
coverage | ||
*.hbs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,9 @@ | ||
import { resolve } from "path"; | ||
import react from "@vitejs/plugin-react"; | ||
import unoCSS from "unocss/vite"; | ||
import { defineConfig } from "vite"; | ||
import tsconfigPaths from "vite-tsconfig-paths"; | ||
import { presetHv } from "@hitachivantara/uikit-uno-preset"; | ||
|
||
import tsconfig from "../tsconfig.json"; | ||
|
||
const aliases = Object.entries(tsconfig.compilerOptions.paths) | ||
.filter(([key]) => key.startsWith("@hitachivantara")) | ||
.reduce((acc, [key, value]) => { | ||
acc[key] = resolve(__dirname, "..", value[0]); | ||
return acc; | ||
}, {}); | ||
|
||
export default defineConfig({ | ||
plugins: [react(), tsconfigPaths(), unoCSS({ presets: [presetHv()] })], | ||
resolve: { | ||
alias: { | ||
...aliases, | ||
}, | ||
}, | ||
build: { | ||
rollupOptions: { | ||
onwarn(warning, warn) { | ||
// Suppress "use client" warnings | ||
if ( | ||
warning.code === "MODULE_LEVEL_DIRECTIVE" && | ||
warning.message.includes(`"use client"`) | ||
) { | ||
return; | ||
} | ||
warn(warning); | ||
}, | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.