question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

time to run task keep increasing

See original GitHub issue

hi,

with this below time keep increasing with each compile step so it starts with 200 ms and keep going up to 1 second, 2 seconds,etc… i checked to see if only one files is passed and indeed it is

const paths = {
    clientScripts: [`src/client/**/*.js`],
    serverScripts: [`src/server/**/*.js`],
    html: `src/client/**/*.html`
}

let babelOptions = {
    presets: [`es2015`, `stage-1`, `stage-3`],
    plugins: [`transform-es2015-modules-commonjs`,
        `transform-decorators-legacy`,
        // `transform-es2015-typeof-symbol`,
        `typecheck`,
        `syntax-flow`,
        `transform-flow-strip-types`,
        [`transform-runtime`, {
            "polyfill": false,
            "regenerator": true
        }]
    ],
    sourceMaps: `inline`,
    sourceRoot: `./`
}

export default async function () {
 await this.watch(paths.clientScripts, `clientJs`);
}

export async function clientJs(file) {
    let source = file ? file : paths.clientScripts;
    let target = file ? `dist/` : `dist/client/`;
    await  this.source(source)
        .babel(babelOptions)
        .target(target);
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
lukeedcommented, Oct 21, 2016

@devmondo hahaha, good!.. I’ll look into it more. Not sure (yet) if usePolling should always be true on Windows, or if it’s just your Webstorm + Windows environment.

1reaction
devmondocommented, Oct 21, 2016

@lukeed holy god!!! it went from 1 second to 200 - 250 ms stable!!! and i made sure to modify file and save it multiple times aggressively. so yeah your suggestion works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Do I See So Much Running In Task Manager?
They're a combination of services and startup programs so that's usually why they pop back up. You have to prevent the service from...
Read more >
CPU Usage always at 70%+ until task manager is open
Hi Team, My CPU usage is always at 90% or 100%. But when I open task manager, after a couple of seconds it...
Read more >
5 processes to end through Task Manager to speed up your PC
Processes could be significantly slowing down your PC right now. Tap or click here for five ways to speed up your PC in...
Read more >
How to Lower CPU Usage: Common Causes & Tips - N-able
Go back to the Task Manager, click the Services tab, and sort the list by order of process ID. You can run your...
Read more >
Spark Job Optimization Myth #1: Increasing the Memory Per ...
A given executor will run one or more tasks at a time. ... Keep in mind that increasing the number of executors will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found