Giter VIP home page Giter VIP logo

Comments (5)

forehalo avatar forehalo commented on May 20, 2024 1

Thanks for you remind, and we definitely should avoid reading required information & computing during lib importing. We will work on it and solve this issue asap.

from perfsee.

moonrailgun avatar moonrailgun commented on May 20, 2024

or add a catch block if not get git environment..

from perfsee.

EYHN avatar EYHN commented on May 20, 2024

Because we need to read information such as commits, branches, tags, etc. from git, this information is necessary for uploading artifacts.

The vercel build environment provides a series of system environment variables, perhaps we can use the information. https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables

from perfsee.

moonrailgun avatar moonrailgun commented on May 20, 2024

Because we need to read information such as commits, branches, tags, etc. from git, this information is necessary for uploading artifacts.

The vercel build environment provides a series of system environment variables, perhaps we can use the information. https://vercel.com/docs/concepts/projects/environment-variables#system-environment-variables

My scene is deploy with cli command vercel deploy, not github app.

And in some case we not need it in init.

I resolve it with require:

if (PREF_REPORT) {
  const PerfseePlugin = require('@perfsee/webpack').PerfseePlugin;
  plugins.push(
    new PerfseePlugin({
      project: 'xxxxxxx',
    })
  );
}

but will lose type.

image


I claim this issue because in esm, standard import is import xxx from 'xxx' or import('xxx').then(...), no way to sync import module(i know i am in node runtime, just hate use require in typescript)

from perfsee.

Brooooooklyn avatar Brooooooklyn commented on May 20, 2024

This works on Vercel 81d012f

from perfsee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.