0.4.2 • Published 5 months ago

vite-plugin-fastly-js-compute v0.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

vite-plugin-fastly-js-compute

Vite plugin for Fastly Compute with vitest.

  • Provide Fastly Compute global variables/classes which are defined inside fastly runtime
  • Resolve namespaced imports like fastly:xxx

Requirements

  • node.js (prefer version 18.19 or later)

Installation

yarn:

yarn add -D vite-plugin-fastly-js-compute

npm:

npm install -D vite-plugin-fastly-js-compute

Usage / Example

This package supports TypeScript ESM tyle.

ESM:

// vitest.config.ts
/// <reference types="vitest" />
import { defineConfig } from "vitest/config";
import fastlyCompute from "vite-plugin-fastly-compute-js";

export default defineConfig({
  plugins: [fastlyCompute()],
  test: {
    ...
  },
});

Contribution

  • Fork this repository
  • Customize / Fix problem
  • Send PR :-)
  • Or feel free to create issues for us. We'll look into it

Author

Yoshiaki Sugimoto sugimoto@wnotes.net

License

MIT

0.4.2

5 months ago

0.4.1

5 months ago

0.4.0

5 months ago