Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats object different with generate: false #1368

Closed
jamesbirtles opened this issue Apr 23, 2018 · 1 comment
Closed

Stats object different with generate: false #1368

jamesbirtles opened this issue Apr 23, 2018 · 1 comment
Labels

Comments

@jamesbirtles
Copy link
Contributor

When running compile with generate: false, the stats object returned is a quite different to normal

e.g. generate: false

Stats {
  startTime: 73029841.411771,
  stack: [],
  timings: 
   [ { label: 'parse',
       start: 73029841.442941,
       end: 73029845.902759,
       children: [] },
     { label: 'stylesheet',
       start: 73029845.913745,
       end: 73029846.028204,
       children: [] },
     { label: 'validate',
       start: 73029846.034336,
       end: 73029849.531215,
       children: [] } ],
  currentChildren: 
   [ { label: 'parse',
       start: 73029841.442941,
       end: 73029845.902759,
       children: [] },
     { label: 'stylesheet',
       start: 73029845.913745,
       end: 73029846.028204,
       children: [] },
     { label: 'validate',
       start: 73029846.034336,
       end: 73029849.531215,
       children: [] } ],
  onwarn: [Function: defaultOnwarn],
  warnings:  [],
  currentTiming: undefined }

and generate: "dom"

{ timings: 
   { total: 18.931489005684853,
     parse: { total: 4.1629389971494675 },
     stylesheet: { total: 0.11548098921775818 },
     validate: { total: 3.2378130108118057 },
     compile: { total: 11.331197991967201 } },
  warnings: [],
  imports: 
   [ { source: './_components/Layout.html', specifiers: [Array] } ],
  hooks: {} }
Rich-Harris added a commit that referenced this issue Apr 29, 2018
Rich-Harris added a commit that referenced this issue Apr 29, 2018
Return consistently-shaped `stats` object
@Rich-Harris
Copy link
Member

Thanks — fixed in 2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants