Skip to content
Snippets Groups Projects
Commit bfc6d77f authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Use defineConfig

parent 12bf7e31
No related branches found
No related tags found
1 merge request!266Upgrade packages & caculate dates from years
import { sveltekit } from "@sveltejs/kit/vite" import { sveltekit } from "@sveltejs/kit/vite"
import yaml from "js-yaml" import yaml from "js-yaml"
import type { UserConfig } from "vite" import { defineConfig } from "vite"
// import yamlPlugin from "@rollup/plugin-yaml" // import yamlPlugin from "@rollup/plugin-yaml"
import yamlPlugin from "./plugin-yaml-patched" import yamlPlugin from "./plugin-yaml-patched"
const config: UserConfig = { export default defineConfig({
build: { build: {
// Increase size of chunks to 5 MB, to be able to import // Increase size of chunks to 5 MB, to be able to import
// JSON files extracted from OpenFisca country package. // JSON files extracted from OpenFisca country package.
...@@ -25,6 +25,4 @@ const config: UserConfig = { ...@@ -25,6 +25,4 @@ const config: UserConfig = {
ssr: { ssr: {
noExternal: ["d3-scale"], noExternal: ["d3-scale"],
}, },
} })
export default config
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment