@codecb/rollup-plugin-json-ts
v0.0.3
Published
An alternative of @rollup/plugin-json that works better with rollup-plugin-ts
Downloads
17
Readme
@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;