0.0.3 • Published 1 year ago

@codecb/rollup-plugin-json-ts v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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;