@normed/bundle 4.2.0 → 4.2.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.
- package/CHANGELOG.md +11 -0
- package/bundles/SetMap.d.ts +5 -4
- package/bundles/bin/cli.js +20 -9
- package/bundles/bin/cli.js.map +2 -2
- package/bundles/index.js +20 -9
- package/bundles/index.js.map +2 -2
- package/package.json +3 -3
package/bundles/index.js
CHANGED
|
@@ -69094,14 +69094,20 @@ var plugin = {
|
|
|
69094
69094
|
build2.onResolve(
|
|
69095
69095
|
{ filter: filter2 },
|
|
69096
69096
|
async (args) => {
|
|
69097
|
-
|
|
69098
|
-
|
|
69099
|
-
|
|
69100
|
-
|
|
69101
|
-
|
|
69102
|
-
}
|
|
69103
|
-
|
|
69104
|
-
|
|
69097
|
+
const resolvedPath = import_path4.default.resolve(args.resolveDir, args.path);
|
|
69098
|
+
if (import_fs3.default.existsSync(resolvedPath)) {
|
|
69099
|
+
return {
|
|
69100
|
+
sideEffects: false,
|
|
69101
|
+
path: import_path4.default.resolve(args.resolveDir, args.path),
|
|
69102
|
+
pluginData: Object.assign({}, args.pluginData, {
|
|
69103
|
+
[name]: {
|
|
69104
|
+
entrypoint: args.kind === "entry-point"
|
|
69105
|
+
}
|
|
69106
|
+
})
|
|
69107
|
+
};
|
|
69108
|
+
} else {
|
|
69109
|
+
return {};
|
|
69110
|
+
}
|
|
69105
69111
|
}
|
|
69106
69112
|
);
|
|
69107
69113
|
build2.onLoad(
|
|
@@ -69162,7 +69168,7 @@ function pugTransformer(test, onFound) {
|
|
|
69162
69168
|
};
|
|
69163
69169
|
}
|
|
69164
69170
|
function isScriptNodeWithSrcAttr(node) {
|
|
69165
|
-
return node.name === "script" && node.attrs
|
|
69171
|
+
return node.name === "script" && node.attrs?.some((attr) => attr.name === "src");
|
|
69166
69172
|
}
|
|
69167
69173
|
async function loadAsText2(_filepath) {
|
|
69168
69174
|
return {
|
|
@@ -69552,6 +69558,8 @@ var esbuilder = {
|
|
|
69552
69558
|
log_default.error(
|
|
69553
69559
|
`Build failed with ${errors.length} errors and ${warnings.length} warnings.`
|
|
69554
69560
|
);
|
|
69561
|
+
log_default.error(`Errors:`, errors);
|
|
69562
|
+
log_default.warn(`Warnings:`, warnings);
|
|
69555
69563
|
throw [...errors, ...warnings];
|
|
69556
69564
|
}
|
|
69557
69565
|
});
|
|
@@ -70006,6 +70014,9 @@ var SetMap = class _SetMap {
|
|
|
70006
70014
|
return this.entries();
|
|
70007
70015
|
}
|
|
70008
70016
|
[Symbol.toStringTag] = "SetMap";
|
|
70017
|
+
[Symbol.dispose]() {
|
|
70018
|
+
this.clear();
|
|
70019
|
+
}
|
|
70009
70020
|
forEach(callbackfn, thisArg) {
|
|
70010
70021
|
for (const [key, value] of this.entries()) {
|
|
70011
70022
|
callbackfn.call(thisArg, value, key, this);
|