Skip to content

Commit

Permalink
Merge pull request #1091 from ryoppippi/fix-docs
Browse files Browse the repository at this point in the history
feat: change import paths for unplugin-typia
  • Loading branch information
samchon authored Jun 9, 2024
2 parents cf679fb + b7563e7 commit ca1e4db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/pages/docs/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ For reference, there are a couple of ways to integrate `unplugin-typia` into you
<Tabs items={['Vite', 'Next.js', 'esbuild', 'Bun.Build']}>
<Tab>
```typescript filename="vite.config.ts" copy showLineNumbers
import UnpluginTypia from 'unplugin-typia/vite'
import UnpluginTypia from '@ryoppippi/unplugin-typia/vite'

export default defineConfig({
plugins: [
Expand All @@ -311,7 +311,7 @@ export default defineConfig({
</Tab>
<Tab>
```javascript filename="next.config.mjs" copy showLineNumbers
import unTypiaNext from "unplugin-typia/next";
import unTypiaNext from "@ryoppippi/unplugin-typia/next";

/** @type {import('next').NextConfig} */
const config = {
Expand All @@ -326,7 +326,7 @@ export default unTypiaNext(
<Tab>
```javascript filename="esbuild.config.js" copy showLineNumbers
import { build } from 'esbuild'
import UnpluginTypia from 'unplugin-typia/esbuild';
import UnpluginTypia from '@ryoppippi/unplugin-typia/esbuild';

build({
plugins: [
Expand All @@ -341,7 +341,7 @@ build({
</Callout>

```typescript filename="Build.ts" copy showLineNumbers
import UnpluginTypia from 'unplugin-typia/bun'
import UnpluginTypia from '@ryoppippi/unplugin-typia/bun'

await Bun.build({
entrypoints: ["./index.ts"],
Expand Down

0 comments on commit ca1e4db

Please sign in to comment.