Snowpack: Support Yarn v2 (berry) with config extends

Created on 16 Jun 2020  路  3Comments  路  Source: snowpackjs/snowpack

Follow up from https://github.com/yarnpkg/berry/issues/1487

Right now, we use "extends" to extend a configuration object from another. If we extend from a package, it is better to resolve all imported packages from that location instead of from the current working directory. See this comment for an explanation of how our current implementation can be an issue: https://github.com/yarnpkg/berry/issues/1487#issuecomment-644577403

Instead, we need to resolve any plugins relative from the location of the extended config, most likely before we merge with the root user config. This is different from what we do today, where the object is merged before the config is loaded.

good first issue help wanted

Most helpful comment

@FredKSchott I think this can be closed?

All 3 comments

@FredKSchott I think this can be closed?

Yes, I think so!

Thanks again for your help on this!

Was this page helpful?
0 / 5 - 0 ratings