Skip to content

Commit

Permalink
moveout v8 options
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Dec 6, 2023
1 parent 16b0fc0 commit 6c3a98b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/v8/v8.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ const mergeV8Coverage = async (dataList, options) => {

const saveV8HtmlReport = async (reportData, options) => {

const outputFile = path.resolve(options.outputDir, options.outputFile);

const outputDir = path.dirname(outputFile);
const htmlFile = path.basename(outputFile);
const { inline, assetsPath } = options;
const fullPath = path.resolve(options.outputDir, options.outputFile);
const outputDir = path.dirname(fullPath);
const htmlFile = path.basename(fullPath);

// deps
const jsFiles = ['monocart-code-viewer', 'monocart-formatter', 'turbogrid'].map((it) => {
Expand All @@ -187,8 +187,8 @@ const saveV8HtmlReport = async (reportData, options) => {
const htmlOptions = {
reportData,
jsFiles,
inline: options.inline,
assetsPath: options.assetsPath,
inline,
assetsPath,
outputDir,
htmlFile,

Expand Down

0 comments on commit 6c3a98b

Please sign in to comment.