Enable PnP linker on CI build job (#12011)

* chore: use pnp when building babel artifacts

* chore: refine ci config

* fix: match any n_m as unambiguous

The pnp module path starts from global cache path, which does not
match **/n_m

* fix: remove dedupe option and abort rollup on unexpected warning messages

* chore: suppress Circular_Dependency warning

* fix build error

* replace make bootstrap-only by yarn install
This commit is contained in:
Huáng Jùnliàng
2020-12-18 19:00:43 -05:00
committed by GitHub
parent b9deeb458b
commit d28c1e52d0
5 changed files with 19 additions and 10 deletions

View File

@@ -239,6 +239,13 @@ function buildRollup(packages, targetBrowsers) {
const bundle = await rollup.rollup({
input,
external,
onwarn(warning, warn) {
if (warning.code !== "CIRCULAR_DEPENDENCY") {
warn(warning);
// https://github.com/babel/babel/pull/12011#discussion_r540434534
throw new Error("Rollup aborted due to warnings above");
}
},
plugins: [
rollupBabelSource(),
rollupReplace({
@@ -257,10 +264,6 @@ function buildRollup(packages, targetBrowsers) {
extensions: [".mjs", ".cjs", ".ts", ".js", ".json"],
browser: nodeResolveBrowser,
preferBuiltins: true,
//todo: remove when semver and source-map are bumped to latest versions
dedupe(importee) {
return ["semver", "source-map"].includes(importee);
},
}),
rollupCommonJs({
include: [