-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ionalfiles-in-compiler-api change adapter to additionalFiles in compiler API
- Loading branch information
Showing
8 changed files
with
86 additions
and
58 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
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
24 changes: 7 additions & 17 deletions
24
inlang/packages/paraglide/paraglide-next/example/next.config.mjs
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,23 +1,13 @@ | ||
import { paraglideWebpackPlugin } from "@inlang/paraglide-js"; | ||
import { ParaglideNext } from "@inlang/paraglide-next"; | ||
import { withParaglideNext } from "@inlang/paraglide-next"; | ||
|
||
/** @type {import("next").NextConfig} */ | ||
const nextConfig = { | ||
export default withParaglideNext({ | ||
paraglide: { | ||
outdir: "./src/paraglide", | ||
project: "./project.inlang", | ||
}, | ||
eslint: { | ||
// Warning: This allows production builds to successfully complete even if | ||
// your project has ESLint errors. | ||
ignoreDuringBuilds: true, | ||
}, | ||
webpack: (config) => { | ||
config.plugins.push( | ||
paraglideWebpackPlugin({ | ||
project: "./project.inlang", | ||
outdir: "./src/paraglide", | ||
adapter: ParaglideNext(), | ||
}) | ||
); | ||
return config; | ||
}, | ||
}; | ||
|
||
export default nextConfig; | ||
}); |
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
8 changes: 3 additions & 5 deletions
8
inlang/packages/paraglide/paraglide-sveltekit/example/vite.config.ts
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,15 +1,13 @@ | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
import { defineConfig } from 'vite'; | ||
import { paraglideVitePlugin } from '@inlang/paraglide-js'; | ||
import { ParaglideSveltekitAdapter } from '@inlang/paraglide-sveltekit'; | ||
import { paraglideSveltekit } from '@inlang/paraglide-sveltekit'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
sveltekit(), | ||
paraglideVitePlugin({ | ||
paraglideSveltekit({ | ||
project: './project.inlang', | ||
outdir: './src/lib/paraglide', | ||
adapter: ParaglideSveltekitAdapter() | ||
outdir: './src/lib/paraglide' | ||
}) | ||
] | ||
}); |
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