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:
11
Gulpfile.js
11
Gulpfile.js
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user