diff --git a/packages/modular-scripts/package.json b/packages/modular-scripts/package.json index dcb81d2a4..b6be452ef 100644 --- a/packages/modular-scripts/package.json +++ b/packages/modular-scripts/package.json @@ -97,7 +97,7 @@ "resolve-url-loader": "5.0.0-beta.1", "rimraf": "3.0.2", "rollup": "2.70.1", - "rollup-plugin-esbuild": "^4.7.2", + "rollup-plugin-esbuild": "^4.9.1", "rollup-plugin-postcss": "4.0.2", "sass-loader": "10.0.5", "semver": "7.3.6", diff --git a/packages/modular-scripts/src/__tests__/__snapshots__/index.test.ts.snap b/packages/modular-scripts/src/__tests__/__snapshots__/index.test.ts.snap index 1c5439068..07a61c8d3 100644 --- a/packages/modular-scripts/src/__tests__/__snapshots__/index.test.ts.snap +++ b/packages/modular-scripts/src/__tests__/__snapshots__/index.test.ts.snap @@ -39,7 +39,7 @@ module.exports = SampleView; exports[`modular-scripts WHEN building a view THEN outputs the correct output cjs map file 1`] = ` Object { "file": "index.js", - "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAEkD,SAAA,UAAA,GAAA;AAChD,EAAA,uBAAQA,gBAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAI,aAAY,EAAA,WAAA;AAAA,GAAA,EAAY,wBAAsB,CAAA,CAAA;AAC5D;;;;", + "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AACe,SAAS,UAAU,GAAG;AACrC,EAAE,uBAAuBA,gBAAK,CAAC,aAAa,CAAC,KAAK,EAAE;AACpD,IAAI,aAAa,EAAE,WAAW;AAC9B,GAAG,EAAE,wBAAwB,CAAC,CAAC;AAC/B;;;;", "names": Array [ "React", ], diff --git a/packages/modular-scripts/src/__tests__/build.test.ts b/packages/modular-scripts/src/__tests__/build.test.ts index 8818088be..5648ba7fd 100644 --- a/packages/modular-scripts/src/__tests__/build.test.ts +++ b/packages/modular-scripts/src/__tests__/build.test.ts @@ -51,14 +51,14 @@ describe('WHEN building with preserve modules', () => { ├─ README.md #1jv3l2q ├─ dist-cjs │ ├─ index.js #y5z0kw - │ ├─ index.js.map #9gwbxv + │ ├─ index.js.map #1gofapj │ ├─ runAsync.js #kr3qrh - │ └─ runAsync.js.map #8mj5cr + │ └─ runAsync.js.map #19q2dqp ├─ dist-es │ ├─ index.js #7arwpf - │ ├─ index.js.map #1u5sgs8 + │ ├─ index.js.map #p3aqj2 │ ├─ runAsync.js #1tt0e7o - │ └─ runAsync.js.map #1b108ot + │ └─ runAsync.js.map #1tlnsv0 ├─ dist-types │ ├─ index.d.ts #12l2tmi │ └─ runAsync.d.ts #1iek7az @@ -149,10 +149,10 @@ describe('WHEN building packages with private cross-package dependencies', () => ├─ README.md #1jv3l2q ├─ dist-cjs │ ├─ index.js #1gj4b9h - │ └─ index.js.map #1ek1e5y + │ └─ index.js.map #1v4zj6b ├─ dist-es │ ├─ index.js #xezjee - │ └─ index.js.map #1jddgm7 + │ └─ index.js.map #isxuu ├─ dist-types │ └─ index.d.ts #6hjmh9 └─ package.json" diff --git a/packages/modular-scripts/src/__tests__/index.test.ts b/packages/modular-scripts/src/__tests__/index.test.ts index 7a6e04572..8209f9a4e 100644 --- a/packages/modular-scripts/src/__tests__/index.test.ts +++ b/packages/modular-scripts/src/__tests__/index.test.ts @@ -269,10 +269,10 @@ describe('modular-scripts', () => { ├─ README.md #11adaka ├─ dist-cjs │ ├─ index.js #a7k6ic - │ └─ index.js.map #1u4rlnk + │ └─ index.js.map #1m4qim9 ├─ dist-es │ ├─ index.js #1ymmv5l - │ └─ index.js.map #1mxf0r9 + │ └─ index.js.map #11lg0ox ├─ dist-types │ └─ index.d.ts #1vloh7q └─ package.json" @@ -350,10 +350,10 @@ describe('modular-scripts', () => { ├─ README.md #1jv3l2q ├─ dist-cjs │ ├─ index.js #rq9uxe - │ └─ index.js.map #btfy1j + │ └─ index.js.map #19satcx ├─ dist-es │ ├─ index.js #3bszhr - │ └─ index.js.map #i0ru7n + │ └─ index.js.map #1m2nocl ├─ dist-types │ └─ index.d.ts #f68aj └─ package.json" @@ -420,10 +420,10 @@ describe('modular-scripts', () => { ├─ README.md #1jv3l2q ├─ dist-cjs │ ├─ nested-sample-package.cjs.js #kv2xzp - │ └─ nested-sample-package.cjs.js.map #bmnyzk + │ └─ nested-sample-package.cjs.js.map #bgpzsg ├─ dist-es │ ├─ nested-sample-package.es.js #11z6hlv - │ └─ nested-sample-package.es.js.map #iuy9g6 + │ └─ nested-sample-package.es.js.map #14mne6l ├─ dist-types │ └─ index.d.ts #f68aj └─ package.json" diff --git a/yarn.lock b/yarn.lock index 684aadf4f..24f84a2ca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5969,6 +5969,11 @@ es-abstract@^1.17.2, es-abstract@^1.19.0, es-abstract@^1.19.1: string.prototype.trimstart "^1.0.4" unbox-primitive "^1.0.1" +es-module-lexer@^0.9.3: + version "0.9.3" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" + integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ== + es-to-primitive@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" @@ -11549,12 +11554,14 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" -rollup-plugin-esbuild@^4.7.2: - version "4.7.2" - resolved "https://registry.yarnpkg.com/rollup-plugin-esbuild/-/rollup-plugin-esbuild-4.7.2.tgz#1a496a9f96257cdf5ed800e818932859232471f8" - integrity sha512-rBS2hTedtG+wL/yyIWQ84zju5rtfF15gkaCLN0vsWGmBdRd0UPm52meAwkmrsPQf3mB/H2o+k9Q8Ce8A66SE5A== +rollup-plugin-esbuild@^4.9.1: + version "4.9.1" + resolved "https://registry.yarnpkg.com/rollup-plugin-esbuild/-/rollup-plugin-esbuild-4.9.1.tgz#369d137e2b1542c8ee459495fd4f10de812666aa" + integrity sha512-qn/x7Wz9p3Xnva99qcb+nopH0d2VJwVnsxJTGEg+Sh2Z3tqQl33MhOwzekVo1YTKgv+yAmosjcBRJygMfGrtLw== dependencies: "@rollup/pluginutils" "^4.1.1" + debug "^4.3.3" + es-module-lexer "^0.9.3" joycon "^3.0.1" jsonc-parser "^3.0.0"