@poppinss/ts-exec 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/index.js +2 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -197,7 +197,8 @@ var load = function load2(url, context, nextLoad) {
197
197
  ...context,
198
198
  format: "module"
199
199
  });
200
- const { code, map } = transformSync(source.toString(), {
200
+ const sourceText = typeof source === "string" ? source : new TextDecoder("utf-8", { ignoreBOM: true }).decode(source);
201
+ const { code, map } = transformSync(sourceText, {
201
202
  format: format ?? "module-tsx",
202
203
  filename: fileURLToPath2(url),
203
204
  ...swcConfig
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@poppinss/ts-exec",
3
3
  "description": "TypeScript JIT compiler built for correctness and supports legacy/experimental decorators",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },