Skip to content

Commit

Permalink
Upgrade esbuild to 0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed Jun 14, 2024
1 parent 3e48a3e commit 3e27c42
Show file tree
Hide file tree
Showing 11 changed files with 2,275 additions and 2,460 deletions.
13 changes: 13 additions & 0 deletions .changeset/healthy-pets-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@chialab/esbuild-plugin-commonjs': minor
'@chialab/esbuild-plugin-meta-url': minor
'@chialab/esbuild-plugin-metadata': minor
'@chialab/esbuild-plugin-postcss': minor
'@chialab/esbuild-plugin-babel': minor
'@chialab/esbuild-plugin-html': minor
'@chialab/esbuild-plugin-env': minor
'@chialab/esbuild-rna': minor
'@chialab/rna-bundler': minor
---

Upgrade esbuild to 0.21.x
37 changes: 14 additions & 23 deletions packages/esbuild-plugin-babel/test/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,11 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
var nil = /* @__PURE__ */ function() {
var _ref = _asyncToGenerator(/* @__PURE__ */ _regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function _callee$(_context) {
while (1)
switch (_context.prev = _context.next) {
case 0:
case "end":
return _context.stop();
}
while (1) switch (_context.prev = _context.next) {
case 0:
case "end":
return _context.stop();
}
}, _callee);
}));
return function nil2() {
Expand Down Expand Up @@ -121,13 +120,11 @@ function _typeof(o) {
// ../../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
function toPrimitive(t, r) {
if ("object" != _typeof(t) || !t)
return t;
if ("object" != _typeof(t) || !t) return t;
var e = t[Symbol.toPrimitive];
if (void 0 !== e) {
var i = e.call(t, r || "default");
if ("object" != _typeof(i))
return i;
if ("object" != _typeof(i)) return i;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return ("string" === r ? String : Number)(t);
Expand All @@ -140,19 +137,13 @@ function toPropertyKey(t) {
}
// ../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
function _defineProperty(obj, key, value) {
key = toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
function _defineProperty(e, r, t) {
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: true,
configurable: true,
writable: true
}) : e[r] = t, e;
}
// test.spec.js
Expand Down
3 changes: 1 addition & 2 deletions packages/esbuild-plugin-commonjs/test/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ export {
.toBe(`var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
}) : x)(function(x) {
if (typeof require !== "undefined")
return require.apply(this, arguments);
if (typeof require !== "undefined") return require.apply(this, arguments);
throw Error('Dynamic require of "' + x + '" is not supported');
});
Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild-plugin-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"node": ">=18"
},
"devDependencies": {
"esbuild": "^0.20.0",
"esbuild": "^0.21.0",
"typescript": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/esbuild-plugin-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@jimp/png": "^0.22.0",
"@types/js-beautify": "^1.13.3",
"cheerio": "^1.0.0-rc.12",
"esbuild": "^0.20.0",
"esbuild": "^0.21.0",
"htmlnano": "^2.1.0",
"js-beautify": "^1.14.0",
"rimraf": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild-plugin-meta-url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"devDependencies": {
"@types/mime-types": "^2.1.1",
"esbuild": "^0.20.0",
"esbuild": "^0.21.0",
"typescript": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/esbuild-plugin-metadata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"node": ">=18"
},
"devDependencies": {
"esbuild": "^0.20.0",
"esbuild": "^0.21.0",
"typescript": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/esbuild-plugin-postcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"devDependencies": {
"@chialab/postcss-dart-sass": "^0.19.0-beta.0",
"cssnano": "^6.0.1",
"esbuild": "^0.20.0",
"esbuild": "^0.21.0",
"postcss-scss": "^4.0.0",
"typescript": "^5.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild-rna/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@chialab/node-resolve": "^0.19.0-beta.0"
},
"devDependencies": {
"esbuild": "^0.20.0",
"esbuild": "^0.21.0",
"typescript": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/rna-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@chialab/esbuild-rna": "^0.19.0-beta.0",
"@chialab/rna-config-loader": "^0.19.0-beta.0",
"@chialab/rna-logger": "^0.19.0-beta.0",
"esbuild": "^0.20.0"
"esbuild": "^0.21.0"
},
"devDependencies": {
"typescript": "^5.0.0"
Expand Down
Loading

0 comments on commit 3e27c42

Please sign in to comment.