Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drollup/plugins/json/types.d.ts>RollupJsonOptions

Next-generation ES module bundler ported for Deno
Latest
interface RollupJsonOptions
import { type RollupJsonOptions } from "https://deno.land/x/drollup@2.58.0%2B0.20.0/plugins/json/types.d.ts";

Properties

optional
include: FilterPattern

All JSON files will be parsed by default, but you can also specifically include files

optional
exclude: FilterPattern

All JSON files will be parsed by default, but you can also specifically exclude files

optional
preferConst: boolean

For tree-shaking, properties will be declared as variables, using either var or const.

optional
indent: string

Specify indentation for the generated default export

optional
compact: boolean

Ignores indent and generates the smallest code

optional
namedExports: boolean

Generate a named export for every property of the JSON object