vite-plugin-fastly-js-compute
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-fastly-js-compute

Weekly Downloads

1,256

Version

0.4.2

License

MIT

Unpacked Size

22.1 kB

Total Files

21

Last publish

Collaborators

  • ysugimoto