From 8e2af88708f037f5526f2e5b141d78e300c16ba3 Mon Sep 17 00:00:00 2001 From: ycjcl868 <45808948@qq.com> Date: Thu, 11 Mar 2021 10:53:50 +0800 Subject: [PATCH] fix(ssr): dep lost --- packages/preset-built-in/src/plugins/features/ssr/ssr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/preset-built-in/src/plugins/features/ssr/ssr.ts b/packages/preset-built-in/src/plugins/features/ssr/ssr.ts index dcc46a3e4dd2..009db53ead17 100644 --- a/packages/preset-built-in/src/plugins/features/ssr/ssr.ts +++ b/packages/preset-built-in/src/plugins/features/ssr/ssr.ts @@ -2,7 +2,7 @@ import * as fs from 'fs'; import { EOL } from 'os'; import assert from 'assert'; import * as path from 'path'; -import serialize from 'serialize-javascript'; +import serialize from '@umijs/deps/compiled/serialize-javascript'; import { performance } from 'perf_hooks'; import { Route } from '@umijs/core'; import { IApi, BundlerConfigType } from '@umijs/types';