Skip to content

Latest commit

 

History

History

json-ts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

@codecb/rollup-plugin-json-ts

An alternative of @rollup/plugin-json that works better with rollup-plugin-ts

Usage

import { json } from '@codecb/rollup-plugin-json-ts';
import { defineConfig } from 'rollup';
import ts from 'rollup-plugin-ts';

const config = defineConfig({
  input: './src/index.ts',
  output: {
    dir: './dist',
    format: 'esm',
  },
  plugins: [json({}), ts({})],
});

export default config;