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 committed Oct 16, 2024
1 parent a004953 commit 259668c
Show file tree
Hide file tree
Showing 11 changed files with 4,544 additions and 6,621 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 259668c

Please sign in to comment.