1.3.1 • Published 2 years ago

rollup-plugin-dbg v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rollup-plugin-dbg

This plugin is also compatible with vite

use with rollup

import { defineConfig } from "rollup";
import config from "./package.json";
import PluginDbg from "rollup-plugin-dbg";

export default defineConfig({
  plugins: [PluginDbg({ projectRoot: __dirname })],
  input: "./index.js",
  output: [
    {
      file: config.exports["."].import,
      format: "es",
    },
    {
      file: config.exports["."].require,
      format: "commonjs",
      exports: "auto",
    },
  ],
});

use with vite

import { defineConfig } from "vite";
import PluginDbg from "rollup-plugin-dbg";

export default defineConfig({
  mode: "development",
  plugins: [PluginDbg()], // do not need projectRoot when using with vite
  build: {
    outDir: "dist",
    lib: {
      entry: "index.js",
      name: "example",
    },
  },
});
1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago