0.0.10 • Published 2 years ago

vite-plugin-open-ide v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vite-plugin-open-ide

NPM version

Jump to the local IDE source code while clicking the element of the browser automatically.

https://user-images.githubusercontent.com/43719490/223932417-35b4195a-71cd-4df1-a448-2d269ecbddcf.mp4

TODO

  • Support Vue
  • Support React
  • Support PReact
  • Support Solid
  • Support Svelte

Examples

FrameworkExample
Vue2Example
Vue3Example
ReactExample
PReactExample
SolidExample
SvelteExample

Install

pnpm install vite-plugin-open-ide -D
// vite.config.ts
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue2'
import OpenIde from 'vite-plugin-open-ide'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    OpenIde({
      framework:'vue'
    }),
    Vue(),
  ],
})

// vite.config.ts
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import OpenIde from 'vite-plugin-open-ide'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    OpenIde({
      framework:'vue'
    }),
    Vue(),
  ],
})

// vite.config.ts
import { defineConfig } from 'vite'
import React from '@vitejs/plugin-react'
import OpenIde from 'vite-plugin-open-ide'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    OpenIde({
      framework:'react'
    }),
    React(),
  ],
})

// vite.config.ts
import { defineConfig } from 'vite'
import Preact from '@preact/preset-vite'
import OpenIde from 'vite-plugin-open-ide'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    OpenIde({
      framework:'preact'
    }),
    Preact(),
  ],
})

// vite.config.ts
import { defineConfig } from 'vite';
import SolidPlugin from 'vite-plugin-solid';
import OpenIde from 'vite-plugin-open-ide'

export default defineConfig({
  plugins: [
    OpenIde({
      framework:'solid'
    }),
    SolidPlugin(),
  ],
  build: {
    target: 'esnext',
  },
})

// vite.config.ts
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import openIde from 'vite-plugin-open-ide'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    openIde({
      framework: 'svelte'
    }),
    svelte(),
  ],
})

Config

// vite.config.ts
import { defineConfig } from 'vite'
import OpenIde from 'vite-plugin-open-ide'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    OpenIde({
      framework: 'react' | 'vue' | 'solid' | 'preact' | 'svelte'
    }),
  ]
})

Credits

Thanks to:

License

MIT License © 2023 Elone Hoo

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago