0.0.7 • Published 9 months ago

@farmfe/plugin-yaml v0.0.7

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

@farmfe/plugin-yaml

Inspired By @rollup/plugin-yaml

🍣 A Farm plugin which Converts YAML files to ES6 modules.

install

pnpm add -D @farmfe/plugin-yaml

Usage

farm.config.ts

import { defineConfig } from '@farmfe/core';

export default defineConfig({
  plugins: [
    [
      '@farmfe/plugin-yaml',
      {
        documentMode: 'single' | 'multi', // default single
        include: Regex, // default None,
        exclude: Regex, // default None
      },
    ],
  ],
});

notice:

include or exclude is Regex not glob For example **/01.yaml is not illegal。What is right is like ".*\\/01.yaml"

0.0.7

9 months ago

0.0.6

10 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.2

1 year ago