Skip to content

Default to node_modules/.cache for cacheDirectory #2231

@hzoo

Description

@hzoo

Noticed when debugging facebook/create-react-app#1179?

my suggestion is using https://github.com/avajs/find-cache-dir

const findCacheDir = require('find-cache-dir');

findCacheDir({name: 'unicorns'});
//=> '/user/path/node-modules/.cache/unicorns'

We added it to babel-loader via babel/babel-loader#301 although later a fallback to os babel/babel-loader#318

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions