@serenity-is/tsbuild 6.7.1 → 6.9.7

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/dist/index.js +3 -4
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -159,13 +159,12 @@ export function importAsGlobalsPlugin(mapping) {
159
159
  build.onResolve({ filter }, (args) => {
160
160
  if (!mapping[args.path])
161
161
  throw new Error("Unknown global: " + args.path);
162
- return { path: args.path, namespace: "external-global" };
162
+ return { path: mapping[args.path], namespace: "external-global" };
163
163
  });
164
164
 
165
- build.onLoad({ filter, namespace: "external-global" },
165
+ build.onLoad({ filter: /.*/, namespace: "external-global" },
166
166
  async (args) => {
167
- const global = mapping[args.path];
168
- return { contents: `module.exports = ${global};`, loader: "js" };
167
+ return { contents: `module.exports = ${args.path};`, loader: "js" };
169
168
  });
170
169
  }
171
170
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@serenity-is/tsbuild",
3
- "version": "6.7.1",
3
+ "version": "6.9.7",
4
4
  "author": "Serenity (https://serenity.is)",
5
5
  "bugs": "https://github.com/serenity-is/serenity/issues",
6
6
  "description": "Serenity ESBuild functions",
7
7
  "dependencies": {
8
- "esbuild": "0.16.14",
9
- "glob": "9.2.1"
8
+ "esbuild": "0.19.5",
9
+ "glob": "10.3.10"
10
10
  },
11
11
  "exports": {
12
12
  ".": {
@@ -29,6 +29,6 @@
29
29
  "esbuild"
30
30
  ],
31
31
  "license": "MIT",
32
- "repository": "https://github.com/serenity-is/serenity/src/Serenity.Scripts/tsbuild",
32
+ "repository": "https://github.com/serenity-is/serenity/packages/tsbuild",
33
33
  "type": "module"
34
34
  }