Skip to content

Commit

Permalink
fix: fix require error
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Oct 27, 2020
1 parent d51cfe5 commit 06e1d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/vite/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import gzipPlugin from './gzip/index';

import { hmScript } from '../hm';

const pkg = require('../../../package.json');

// @ts-ignore
import pkg from '../../../package.json';
import { isDevFn, isProdFn, isSiteMode, ViteEnv, isReportMode, isBuildGzip } from '../../utils';
import { GLOB_CONFIG_FILE_NAME } from '../../constant';

Expand Down

0 comments on commit 06e1d38

Please sign in to comment.