Skip to content

Transform leaves process running causing CI to fail #50

@Deseteral

Description

@Deseteral

When the build process (babel) quits and the transform was used it leaves a child process running which causes CI build to hang and eventually fail.

Code to reproduce:

const babel = require("babel-core");

const babelOpts = {
  plugins: [
    ['transform-postcss', {
      config: 'path/to/postcss.config.js'
    }]
  ]
};

const source = 'const s = require("./path/to/postcss/file.css");';

const res = babel.transform(source, babelOpts);
console.log(res.code);

postcss.config.js:

module.exports = ctx => ({
  plugins: []
});

CSS file:

.link {
  color: red;
}

The transpiled code is correct the only problem is orphaned child process.

After looking for details I found in MacOS's Activity Monitor that this process is using /tmp/bptp-<projectname>.sock file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions