UNPKG

@greenwood/plugin-import-commonjs

Version:

A plugin for loading CommonJS based modules in the browser using ESM (import / export) syntax.

8 lines (5 loc) 266 B
import type { ResourcePlugin, RollupPlugin } from "@greenwood/cli"; export type ImportCommonJSPlugin = () => [ResourcePlugin, RollupPlugin]; declare module "@greenwood/plugin-import-commonjs" { export const greenwoodPluginImportCommonJs: ImportCommonJSPlugin; }