Some compile-time magic for your Vite project

Related tags

Vue.js vite
Overview

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.


vite-plugin-compile-time

npm version npm downloads

Use this plugin to generate code at compile time or get data at compile time in your Vite projects.

Install

npm i vite-plugin-compile-time -D
import { defineConfig } from "vite"
import compileTime from "vite-plugin-compile-time"

export default defineConfig({
  plugins: [compileTime()],
})

Usage

Compile-time data:

// get-data.ts
import fs from "fs"

export default async () => {
  const post = await fs.promises.readFile("./post.md", "utf8")
  return {
    data: { post },
  }
}

// get the data at compile time
const data = import.meta.compileTime("./get-data.ts")
assert.deepEqual(data, { post: "....." })

Compile-time code:

// generate-code.ts
export default async () => {
  return {
    code: `count++`,
  }
}

// insert the generated code at compile time
let count = 0
import.meta.compileTime("./generate-code.ts")
assert.equal(count, 1)

API

Use import.meta.compileTime to get compile-time data or code.

declare interface ImportMeta {
  compileTime: <T>(file: string) => T
}

You should return a default export with object containing code or data property:

import {
  CompileTimeFunctionArgs,
  CompileTimeFunctionResult,
} from "vite-plugin-compile-time"

export default async (
  args: CompileTimeFunctionArgs,
): CompileTimeFunctionResult => {
  return {
    data: {
      hello: "world",
    },
    // Trigger rebuild when watched files change
    watchFiles: ["/absolute/path"],
  }
}

See the type docs on paka.dev.

Sponsors

sponsors

License

MIT © EGOIST

Comments
  • The automated release is failing 🚨

    The automated release is failing 🚨

    :rotating_light: The automated release from the main branch failed. :rotating_light:

    I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

    You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.

    Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

    Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the main branch. You can also manually restart the failed CI job that runs semantic-release.

    If you are not sure how to resolve this, here are some links that can help you:

    If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


    No npm token specified.

    An npm token must be created and set in the NPM_TOKEN environment variable on your CI environment.

    Please make sure to create an npm token and to set it in the NPM_TOKEN environment variable on your CI environment. The token must allow to publish to the registry https://registry.npmjs.org/.


    Good luck with your project ✨

    Your semantic-release bot :package::rocket:

    semantic-release 
    opened by github-actions[bot] 1
  • Update dependency vitest to v0.0.122

    Update dependency vitest to v0.0.122

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | vitest | 0.0.120 -> 0.0.122 | age | adoption | passing | confidence |


    Release Notes

    antfu/vitest

    v0.0.122

    Compare Source

    Features

    v0.0.121

    Compare Source

    Bug Fixes
    • incorrect behaviour of toBeDefined with not flag (97abcb9)
    • toStrictEqual didn't have an assertion (fc9524b)
    Features

    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Update dependency vitest to v0.0.120

    Update dependency vitest to v0.0.120

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | vitest | 0.0.119 -> 0.0.120 | age | adoption | passing | confidence |


    Release Notes

    antfu/vitest

    v0.0.120

    Compare Source

    Bug Fixes
    • proxy nested default (#​359) (affbb55)
    • running vitest in yarn, when vitest stored in virtual folder (900952a)
    Features
    • ui: setup vite-plugin-pages (3d7d2f3)

    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Update dependency vitest to v0.0.119

    Update dependency vitest to v0.0.119

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | vitest | ^0.0.118 -> 0.0.119 | age | adoption | passing | confidence |


    Release Notes

    antfu/vitest

    v0.0.119

    Compare Source

    Bug Fixes
    Features

    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Pin dependency vite to 2.7.9

    Pin dependency vite to 2.7.9

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | vite | devDependencies | pin | ^2.7.9 -> 2.7.9 |

    📌 Important: Renovate will wait until you have merged this Pin PR before creating any upgrade PRs for the affected packages. Add the preset :preserveSemverRanges to your config if you instead don't wish to pin dependencies.


    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Update dependency tsup to v5.11.9

    Update dependency tsup to v5.11.9

    WhiteSource Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | tsup | 5.11.6 -> 5.11.9 | age | adoption | passing | confidence |


    Release Notes

    egoist/tsup

    v5.11.9

    Compare Source

    Bug Fixes
    • watch mode: buildDependencies lost after build failure (#​504) (40951ec)
    • dts: apply required defaults to rollup-plugin-dts, closes #​509 (6c44f3d)

    v5.11.8

    Compare Source

    Bug Fixes

    v5.11.7

    Compare Source

    Bug Fixes

    Configuration

    📅 Schedule: At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by WhiteSource Renovate. View repository job log here.

    opened by renovate[bot] 0
  • feat: pass arguments to the codegen function

    feat: pass arguments to the codegen function

    currently this throws on runtime

    // index.js
    import.meta.compileTime("./codegen.js", "someName");
    // TypeError: (intermediate value).compileTime is not a function
    

    expected: "someName" should be passed to the codegen function

    // codegen.js
    export default async ({ root, args }) => { // currently only "root" is passed
      const name = args[0];
      return {
        code: `const ${name} = 42;`,
      }
    }
    

    use case: generate code like

    // static code
    /** @type {Record<string, () => any>} */
    const someFiles = {};
    
    // generated code
    someFiles["./a.js"] = () => import("./a.js");
    someFiles["./b.js"] = () => import("./b.js");
    

    ... to allow some type-checking of the generated code

    opened by milahu 0
  • Update actions/cache action to v3

    Update actions/cache action to v3

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | actions/cache | action | major | v2 -> v3 |


    Release Notes

    actions/cache

    v3

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Update dependency prettier to v2.7.1

    Update dependency prettier to v2.7.1

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | prettier (source) | 2.5.1 -> 2.7.1 | age | adoption | passing | confidence |


    Release Notes

    prettier/prettier

    v2.7.1

    Compare Source

    diff

    Keep useful empty lines in description (#​13013 by @​chimurai)

    v2.7.0

    Compare Source

    """ First line Second Line """ type Person { name: String }

    v2.6.2

    Compare Source

    diff

    Fix LESS/SCSS format error (#​12536 by @​fisker)
    // Input
    .background-gradient(@&#8203;cut) {
        background: linear-gradient(
            to right,
            @&#8203;white 0%,
            @&#8203;white (@&#8203;cut - 0.01%),
            @&#8203;portal-background @&#8203;cut,
            @&#8203;portal-background 100%
        );
    }
    
    // Prettier 2.6.1
    TypeError: Cannot read properties of undefined (reading 'endOffset')
    
    // Prettier 2.6.2
    .background-gradient(@&#8203;cut) {
      background: linear-gradient(
        to right,
        @&#8203;white 0%,
        @&#8203;white (@&#8203;cut - 0.01%),
        @&#8203;portal-background @&#8203;cut,
        @&#8203;portal-background 100%
      );
    }
    
    Update meriyah to fix several bugs (#​12567 by @​fisker, fixes in meriyah by @​3cp)

    Fixes bugs when parsing following valid code:

    foo(await bar());
    
    const regex = /.*/ms;
    
    const element = <p>{/w/.test(s)}</p>;
    
    class A extends B {
      #privateMethod() {
        super.method();
      }
    }
    

    v2.6.1

    Compare Source

    diff

    Ignore loglevel when printing information (#​12477 by @​fisker)

    v2.6.0

    Compare Source

    prettier --loglevel silent --find-config-path index.js


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Update actions/checkout action to v3

    Update actions/checkout action to v3

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | actions/checkout | action | major | v2 -> v3 |


    Release Notes

    actions/checkout

    v3

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Update dependency magic-string to ^0.26.0

    Update dependency magic-string to ^0.26.0

    Mend Renovate

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | magic-string | ^0.25.7 -> ^0.26.0 | age | adoption | passing | confidence |


    Release Notes

    rich-harris/magic-string

    v0.26.2

    Compare Source

    Bug Fixes

    v0.26.1

    Compare Source

    Bug Fixes
    • replace: match replacer function signature with spec (902541f)

    v0.26.0

    Compare Source

    BREAKING CHANGES

    • Support of Node.js v10 is dropped. Now magic-string requires Node.js v12 or higher. (#​204)
    • ESM bundle is now shipped with .mjs extension (#​197)
    -  "module": "dist/magic-string.es.js",
    +  "module": "dist/magic-string.es.mjs",
    +  "exports": {
    +    "./package.json": "./package.json",
    +    ".": {
    +      "import": "./dist/magic-string.es.mjs",
    +      "require": "./dist/magic-string.cjs.js"
    +    }
    +  },
    
    Features

    0.25.9 (2022-03-03)

    Bug Fixes
    • allowed overwrite across moved content preceded by split (#​192) (403fa86)
    • types: make options partial by default (2815e77)
    • use defineProperty for appending prop in storeName (#​194) (96b7cd3)

    0.25.8 (2022-03-02)

    Bug Fixes

    0.25.7

    • fix bundle mappings after remove and move in multiple sources (#​172)

    0.25.6

    • Use bitwise operators for small performance boost (#​171)

    0.25.5

    • Use a bitset to reduce memory consumption (#​167)

    0.25.4

    0.25.3

    • Fix typing of SourceMap.version.

    0.25.2

    • Remove deprecated new Buffer(...)
    • Handle characters outside Latin1 range when generating a sourcemap in browser (#​154)

    0.25.1

    • Additional types for index.d.ts (#​148)

    0.25.0

    • Add length method (#​145)
    • Fix trimming chunks with intro/outro (#​144)

    0.24.1

    • Add lastLine and lastChar methods (#​142)

    0.24.0

    • Add isEmpty methods (#​137)
    • Fix a potential race condition (#​136)
    • Fix CJS/ES bundles inlining sourcemap-codec in 0.23.2.

    0.23.2

    • Add generateDecodedMap methods (#​134)

    0.23.1

    0.23.0

    • Use sourcemap-codec for improved performance (#​133)

    0.22.5

    • Add TypeScript interfaces used by rollup (#​131)
    • Remove src directory from npm package

    0.22.4

    • contentOnly and storeName are both optional

    0.22.3

    • Add original to TS definitions

    0.22.2

    0.22.1

    • Update TypeScript definitions (#​124)

    0.22.0

    • Prevent overwrite state corruption (#​115)
    • Various bugfixes (#​126)

    0.21.3

    • Clone indentExclusionRanges correctly (#​122)
    • Fix more typings (#​122)

    0.21.2

    • Add default property referencing self in index-legacy.js, to work around TypeScript bug (#​121)

    0.21.1

    • Add typings file to package

    0.21.0

    • Add TypeScript bindings (#​119)

    0.20.0

    • The fourth argument to overwrite is a {storeName, contentOnly} options object. storeName: true is equivalent to true before. contentOnly will preserve existing appends/prepends to the chunk in question

    0.19.1

    • Prevent overwrites across a split point (i.e. following a move)
    • Implement remove separately to overwrite

    0.19.0

    • More accurate bundle sourcemaps (#​114)

    0.18.0

    • Optimisation – remove empty chunks following overwrite or remove (#​113)

    0.17.0

    • Add appendLeft, appendRight, prependLeft, prependRight methods (#​109)
    • insertLeft and insertRight are deprecated in favour of appendLeft and prependRight respectively

    0.16.0

    • Include inserts in range for overwrite and remove operations (#​89)
    • Make options optional for bundle.generateMap(...) (#​73)

    0.15.2

    • Generate correct bundle sourcemap with prepended/appended content

    0.15.1

    • Minor sourcemap fixes

    0.15.0

    • Use named export of Bundle in ES build, so ES consumers of magic-string can tree-shake it out

    0.14.0

    • Throw if overwrite of zero-length range is attempted
    • Correctly handle redundant move operations

    0.13.1

    • Fix a bevy of s.slice() issues (#​62)

    0.13.0

    • Breaking: insertAfter is now insertLeft, insertBefore is now insertRight
    • Breaking: insert is no longer available. Use insertLeft and insertRight
    • Significant performance improvements

    0.12.1

    • Fix sourcemap generation with insertAfter and insertBefore

    0.12.0

    • Add insertAfter and insertBefore methods

    0.11.4

    • Fix two regression bugs with trim()
    • More informative error message on illegal removals

    0.11.3

    • Fix trim methods to ensure correct sourcemaps with trimmed content (#​53)

    0.11.2

    • Support sourcemaps with moved content

    0.11.1

    • Use findIndex helper for 0.12 support

    0.11.0

    • Add experimental move() method
    • Refactor internals to support move()

    0.10.2

    • Do not overwrite inserts at the end of patched ranges (#​35)

    0.10.1

    • Zero-length inserts are not removed on adjacent overwrites

    0.10.0

    • Complete rewrite, resulting in ~40x speed increase (#​30)
    • Breaking – magicString.locate and locateOrigin are deprecated
    • More forgiving rules about contiguous patches, and which ranges are valid with magicString.slice(...)

    0.9.1

    • Update deps

    0.9.0

    • Update build process

    0.8.0

    • Add an ES6 build, change default UMD build to CommonJS (but keeping existing UMD build with bundled dependencies)
    • Make properties non-enumerable, for cleaner logging
    • Update dependencies

    0.7.0

    • The names array is populated when generating sourcemaps, and mappings include name indices where appropriate (#​16)
    • Replaced content is mapped correctly in sourcemaps (#​15)

    0.6.6

    • Adjust mappings correctly when removing replaced content
    • Error correctly when removed characters are used as slice anchors

    0.6.5

    • Fix jsnext:main in package.json

    0.6.4

    • Fix bug with positive integer coercion

    0.6.3

    • Intro content is correctly indented
    • Content following an intro with trailing newline is correctly indented

    0.6.2

    • Noop indents are still chainable (fixes bug introduced in 0.6.1)

    0.6.1

    • Indenting with an empty string is a noop

    0.6.0

    • Use rollup for bundling, instead of esperanto

    0.5.3

    • Correct sourcemap generation with bundles containing varied separators
    • s.clone() clones indent exclusion ranges and sourcemap locations

    0.5.2

    • s.slice() accepts negative numbers, and the second argument can be omitted (means 'original string length'), just like String.prototype.slice
    • More informative error message when trying to overwrite content illegally

    0.5.1

    • Allow bundle separator to be the empty string
    • Indenting is handled correctly with empty string separator

    0.5.0

    • s.replace() is deprecated in favour of s.overwrite() (identical signature)
    • bundle.addSource() can take a MagicString instance as its sole argument, for convenience
    • The options in new MagicString(str, options) can include filename and indentExclusionRanges options, which will be used when bundling
    • New method: s.snip( start, end )

    0.4.9

    • file option is optional when generating a bundle sourcemap

    0.4.7

    • Repeated insertions at position 0 behave the same as other positions (#​10)

    0.4.6

    • Overlapping ranges can be removed
    • Non-string content is rejected (#​9)

    0.4.5

    • Implement source.addSourcemapLocation()

    0.4.4

    • Another Windows fix, this time for file paths when bundling

    0.4.3

    • Handle Windows-style CRLF newlines when determining whether a line is empty

    0.4.2

    • Fix typo in package.json (d'oh again)
    • Use only relative paths for internal modules - makes bundling with dependents (i.e. esperanto) possible

    0.4.1

    • Includes correct files in npm package (d'oh)

    0.4.0

    0.3.1

    • Fixes a bug whereby multiple insertions at the same location would cause text to repeat (#​5)

    0.3.0

    • Breaking change - source.indentStr is null if no lines are indented. Use source.getIndentString() for the old behaviour (guess, and if no lines are indented, return \t)
    • bundle.getIndentString() ignores sources with no indented lines when guessing indentation (#​3)

    0.2.7

    • source.trimLines() removes empty lines from start/end of source, leaving other whitespace untouched
    • Indentation is not added to an empty source

    0.2.6

    • Performance improvement - adjustments are only made when necessary

    0.2.5

    • Single spaces are ignored when guessing indentation - experience shows these are more likely to be e.g. JSDoc comments than actual indentation
    • bundle.addSource() can take an indentExclusionRanges option

    0.2.4

    • Empty lines are not indented

    0.2.3

    • Fixes edge case with bundle sourcemaps

    0.2.2

    • Make sources paths in sourcemaps relative to options.file

    0.2.1

    • Minor fix for bundle.indent()

    0.2.0

    • Implement MagicString.Bundle for concatenating magic strings

    0.1.10

    • Fix sourcemap encoding

    0.1.9

    • Better performance when indenting large chunks of code

    0.1.8

    • Sourcemaps generated with s.generateMap() have a toUrl() method that generates a DataURI

    0.1.7

    • Implement s.insert( index, content ) - roughly equivalent to s.replace( index, index, content )

    0.1.6

    • Version bump for npm's benefit

    0.1.5

    • s.indent({ exclude: [ x, y ] }) prevents lines between (original) characters x and y from being indented. Multiple exclusion ranges are also supported (e.g. exclude: [[a, b], [c, d]])

    0.1.4

    • s.locate() doesn't throw out-of-bound error if index is equal to original string's length

    0.1.3

    • s.trim() returns this (i.e. is chainable)

    0.1.2

    • Implement s.slice()

    0.1.1

    • Implement s.trim()

    0.1.0

    • First release

    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
  • Update actions/setup-node action to v3

    Update actions/setup-node action to v3

    Mend Renovate

    This PR contains the following updates:

    | Package | Type | Update | Change | |---|---|---|---| | actions/setup-node | action | major | v2 -> v3 |


    Release Notes

    actions/setup-node

    v3

    Compare Source


    Configuration

    📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

    🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

    Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

    🔕 Ignore: Close this PR and you won't be reminded about this update again.


    • [ ] If you want to rebase/retry this PR, click this checkbox.

    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
Owner
EGOIST
.
EGOIST
Vue 3 + Vite + SSR template based on Vite Plugin SSR and inspired by Vitesse

Vite Vue SSR Starter Vue 3 + Vite + SSR template based on Vite Plugin SSR and inspired by Vitesse Features ⚡️ Vue 3, Vite 2, TypeScript ?? Domain-Driv

Oleg Koval 10 Aug 2, 2022
Integrate Tauri in a Vite project to build cross-platform apps.

vite-plugin-tauri Integrate Tauri in a Vite project to build cross-platform apps Install Make sure to setup your environment for Tauri development. Th

Amr Bashir 95 Dec 15, 2022
Minimal setup for a WebXR project using Vite, Babylon.js, TypeScript, and Vue

WebXR-Vite-Babylon-Simple Minimal setup for WebXR development using: vite typescript vue 3 babylonjs 5 (ES6) Intentionally made minimal changes from t

Josh Sanderson 6 Nov 13, 2022
A Vite plugin for projecting your application onto a remote production page during development.

vite-plugin-proxy-page A Vite plugin for developing an SPA in the context of a deployed production page. What's the Problem? It's an increasingly comm

Alex MacArthur 13 Nov 13, 2022
✅ Vite plugin for validating your environment variables

This Vite plugin allows you to validate your environment variables at build or dev time. This allows your build/dev-server to fail-fast if your setup

Julien Ripouteau 61 Dec 23, 2022
Make your Vite projects work in IE11 and other legacy browsers.

vite-plugin-legacy-dev Maybe your Vite project needs work on IE11 or other not support ESM legacy browsers, this plugin can help you! This is only for

haiya6 3 Sep 26, 2022
Based on vitawind, kowind brings ESLint plugin and some other plugins to it that help you to format your code quickly and efficiently.

?? KOWIND v3 ?? Vite helper based on vitawind ?? Easy To Install ⚡️ Automatically open Tailwind JIT Mode ⚙ One-Command Setting ?? Automatically config

Kayo Oliveira 13 Nov 26, 2022
A Marko plugin for Vite

@marko/vite A Marko plugin for Vite. Installation npm install @marko/vite Example config import { defineConfig } from "vite"; import marko from "@mark

Marko 49 Nov 26, 2022
🎉 基于 vite 2.0 + vue 3.0 + vue-router 4.0 + vuex 4.0 + element-plus 的后台管理系统vue3-element-admin

vue3-element-admin ?? 基于 Vite 2.0 + Vue3.0 + Vue-Router 4.0 + Vuex 4.0 + element-plus 的后台管理系统 简介 vue3-element-admin 是一个后台前端解决方案,它基于 vue3 和 element-plu

雪月欧巴 84 Nov 28, 2022
Vite template with TypeScript, Chakra UI, Eslint Airbnb, Prettier

Vite + Typescript + ChakraUI = ❤️ This is a vite template that combines several technologies: Vite React TypeScript ChakraUI Eslint with eslint-config

Lorenzo Rapetti 3 Mar 26, 2022
A template repository / quick start to build Azure Static Web Apps with a Node.js function. It uses Vue.js v3, Vue Router, Vuex, and Vite.js.

Azure Static Web App Template with Node.js API This is a template repository for creating Azure Static Web Apps that comes pre-configured with: Vue.js

Marc Duiker 6 Jun 25, 2022
⏳ vue3 + electron + ts + vite = mini template

v3-electron ?? Electron16 + Vue3 + Vite2 运行项目 # enter the project directory cd v3-electron # install dependency yarn # develop yarn dev # build exe

UNPany 8 Nov 11, 2022
Using Cypress with Vite, React, TypeScript, MSW and react-query

Vie + Cypress + MSW + react-query Demo Example of using Cypress with Vite, MSW and react-query. Uses the appReady pattern to signal to Cypress when th

Rob Caldecott 9 Jul 16, 2022
Fastify boilerplate with Vite & Vitest

Fastify boilerplate with Vite & Vitest Enhance your Fastify DX with the power of Vite & Vitest. Features ⚡ All the power of Vite (Next Generation Fron

Emmanuel Salomon 31 Dec 13, 2022
vite+vue3.2+setup+elementPlus+eslint+js+stylelint

前期准备工作,npm包和vscode配置 !!!很重要,关乎整个Vue3开发阶段的代码提示 Volar使用 使用Vue3开发需要禁用vscode插件Vetur 然后安装 Volar(Vue Language Features),这样Vue3代码提示即使是使用js开发也非常友好 如果volar没有任何

null 2 Feb 8, 2022
vue3 + vite + typescript template

Vue 3 + Typescript + Vite This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 <script setu

BrowLi 6 Aug 1, 2022
Modern ThreeJS boilerplate powered by Vite & Typescript

Modern ThreeJS ⚡️ Modern ThreeJS boilerplate powered by Vite & Typescript. Features Powered with Vite ?? GUI controls using Tweakpane ?? Typescript ??

Alvaro Saburido 64 Jan 4, 2023
Experimenting with vite typescript template rewrite for hot.opensauced.pizza

?? Open Sauced Vite Typescript Template Test ?? The path to your next Open Source contribution ?? Prerequisites In order to run the project we need th

TED Vortex (Teodor-Eugen Duțulescu) 3 Mar 11, 2022
⭐️ Auto create alias map for vite config

vite-plugin-tspaths2alias This plugin is create alias map for vite config, default use project root tsconfig.json file compilerOptions.paths value Ins

yankit 2 Mar 26, 2022