Skip to content

Commit

Permalink
fix: local build (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa authored Oct 12, 2023
1 parent 1e0468e commit 339cbec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/minify.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { BuildOptions } from './utils';
import terser, { Options } from '@rollup/plugin-terser';
import type { Plugin } from 'rollup';
import terser from '@rollup/plugin-terser';
import type { MinifyOptions } from 'terser';
import type { BuildOptions } from './utils';

export function minifyPlugin(opts: BuildOptions, debug: boolean) {
if (debug) {
Expand All @@ -10,7 +9,7 @@ export function minifyPlugin(opts: BuildOptions, debug: boolean) {
return [managlePropsPlugin(), terser(minifyOptions(opts, false))];
}

function minifyOptions(opts: BuildOptions, debug: boolean): MinifyOptions {
function minifyOptions(opts: BuildOptions, debug: boolean): Options {
if (debug) {
const moreCompression = !opts.isDev;
return {
Expand Down

1 comment on commit 339cbec

@vercel
Copy link

@vercel vercel bot commented on 339cbec Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.