Skip to content

Commit

Permalink
chore: upgrade vite (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Sep 4, 2024
1 parent cb2c789 commit 1f7639b
Show file tree
Hide file tree
Showing 11 changed files with 3,334 additions and 4,330 deletions.
9 changes: 6 additions & 3 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { dirname, join } from "path"
// Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0

const { vanillaExtractPlugin } = require("@vanilla-extract/vite-plugin")
const { mergeConfig } = require("vite")
module.exports = {
export default {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
getAbsolutePath("@storybook/addon-links"),
Expand All @@ -20,6 +18,11 @@ module.exports = {
},

async viteFinal(config) {
const { mergeConfig } = await import("vite")
const { vanillaExtractPlugin } = await import(
"@vanilla-extract/vite-plugin"
)

return mergeConfig(config, {
plugins: [vanillaExtractPlugin()],
})
Expand Down
Loading

0 comments on commit 1f7639b

Please sign in to comment.