How to use @rollup/plugin-yaml - 1 common examples

To help you get started, we’ve selected a few @rollup/plugin-yaml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pingcap / tidb-dashboard / ui / packages / rollup.config.base.js View on Github external
sourcemap: true,
      },
    ],
    plugins: [
      external({
        includeDependencies: true,
      }),
      // https://github.com/egoist/rollup-plugin-postcss/issues/110
      // https://github.com/cisen/blog/issues/295
      postcss({
        extensions: ['.css', '.less'],
        use: [['less', lessLoaderConfig]],
      }),
      url(),
      svgr(),
      yaml(),
      resolve(),
      typescript({
        rollupCommonJSResolveHack: true,
        clean: true,
        transformers: [
          () => ({
            before: transformer,
          }),
        ],
      }),
      commonjs(),
    ],
  }
}

@rollup/plugin-yaml

Convert YAML files to ES6 modules

MIT
Latest version published 1 year ago

Package Health Score

84 / 100
Full package analysis

Popular @rollup/plugin-yaml functions