@powerlines/plugin-esbuild 0.13.455 → 0.13.456
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/dist/helpers/bundle.cjs +1 -1
- package/dist/helpers/bundle.mjs +1 -1
- package/dist/helpers/unplugin.cjs +1 -1
- package/dist/helpers/unplugin.mjs +1 -1
- package/dist/helpers/unplugin.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/helpers/bundle.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
const require_helpers_resolve_options = require('./resolve-options.cjs');
|
|
4
|
-
let _stryke_helpers_omit = require("@stryke/helpers/omit");
|
|
5
4
|
let defu = require("defu");
|
|
6
5
|
defu = require_runtime.__toESM(defu, 1);
|
|
7
6
|
let esbuild = require("esbuild");
|
|
8
7
|
let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
9
8
|
let unplugin = require("unplugin");
|
|
9
|
+
let _stryke_helpers_omit = require("@stryke/helpers/omit");
|
|
10
10
|
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
11
11
|
|
|
12
12
|
//#region src/helpers/bundle.ts
|
package/dist/helpers/bundle.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { resolveOptions } from "./resolve-options.mjs";
|
|
2
|
-
import { omit } from "@stryke/helpers/omit";
|
|
3
2
|
import defu from "defu";
|
|
4
3
|
import { build } from "esbuild";
|
|
5
4
|
import { createUnpluginResolver } from "@powerlines/core/lib/unplugin";
|
|
6
5
|
import { createEsbuildPlugin } from "unplugin";
|
|
6
|
+
import { omit } from "@stryke/helpers/omit";
|
|
7
7
|
import { findFileName } from "@stryke/path/file-path-fns";
|
|
8
8
|
|
|
9
9
|
//#region src/helpers/bundle.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unplugin.mjs","names":["createEsbuildUnplugin"],"sources":["../../src/helpers/unplugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createEsbuildPlugin as createEsbuildUnplugin } from \"unplugin\";\nimport { EsbuildPluginContext } from \"../types/plugin\";\n\nexport function createEsbuildPlugin(context: EsbuildPluginContext) {\n return createEsbuildUnplugin(\n createUnplugin(context, { silenceHookLogging: true, name: \"esbuild\" })\n )({ ...context.options, ...context.initialConfig });\n}\n"],"mappings":";;;;AAsBA,SAAgB,oBAAoB,SAA+B;AACjE,QAAOA,sBACL,eAAe,SAAS;EAAE,oBAAoB;EAAM,MAAM;EAAW,CAAC,CACvE,CAAC;EAAE,GAAG,QAAQ;EAAS,GAAG,QAAQ;EAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"unplugin.mjs","names":["createEsbuildUnplugin"],"sources":["../../src/helpers/unplugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin } from \"@powerlines/core/lib/unplugin\";\nimport { createEsbuildPlugin as createEsbuildUnplugin } from \"unplugin\";\nimport { EsbuildPluginContext } from \"../types/plugin\";\n\nexport function createEsbuildPlugin(context: EsbuildPluginContext) {\n return createEsbuildUnplugin(\n createUnplugin(context, { silenceHookLogging: true, name: \"esbuild\" })\n )({ ...context.options, ...context.config.initialConfig });\n}\n"],"mappings":";;;;AAsBA,SAAgB,oBAAoB,SAA+B;AACjE,QAAOA,sBACL,eAAe,SAAS;EAAE,oBAAoB;EAAM,MAAM;EAAW,CAAC,CACvE,CAAC;EAAE,GAAG,QAAQ;EAAS,GAAG,QAAQ,OAAO;EAAe,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const require_helpers_unplugin = require('./helpers/unplugin.cjs');
|
|
|
5
5
|
const require_helpers_bundle = require('./helpers/bundle.cjs');
|
|
6
6
|
const require_helpers_resolve = require('./helpers/resolve.cjs');
|
|
7
7
|
require('./helpers/index.cjs');
|
|
8
|
-
let
|
|
8
|
+
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
9
9
|
let defu = require("defu");
|
|
10
10
|
defu = require_runtime.__toESM(defu, 1);
|
|
11
11
|
let esbuild = require("esbuild");
|
|
@@ -34,7 +34,7 @@ const plugin = (options = {}) => {
|
|
|
34
34
|
}, require_helpers_resolve_options.resolveOptions(this));
|
|
35
35
|
this.debug({
|
|
36
36
|
meta: { category: "config" },
|
|
37
|
-
message: `Resolved Esbuild configuration: \n${
|
|
37
|
+
message: `Resolved Esbuild configuration: \n${(0, _powerlines_core_plugin_utils.formatConfig)(options)}`
|
|
38
38
|
});
|
|
39
39
|
await (0, esbuild.build)(options);
|
|
40
40
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { createEsbuildPlugin } from "./helpers/unplugin.mjs";
|
|
|
3
3
|
import { bundle } from "./helpers/bundle.mjs";
|
|
4
4
|
import { resolve, resolveModule } from "./helpers/resolve.mjs";
|
|
5
5
|
import "./helpers/index.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { formatConfig } from "@powerlines/core/plugin-utils";
|
|
7
7
|
import defu from "defu";
|
|
8
8
|
import { build } from "esbuild";
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ const plugin = (options = {}) => {
|
|
|
31
31
|
}, resolveOptions(this));
|
|
32
32
|
this.debug({
|
|
33
33
|
meta: { category: "config" },
|
|
34
|
-
message: `Resolved Esbuild configuration: \n${
|
|
34
|
+
message: `Resolved Esbuild configuration: \n${formatConfig(options)}`
|
|
35
35
|
});
|
|
36
36
|
await build(options);
|
|
37
37
|
}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Plugin } from \"@powerlines/core\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Plugin } from \"@powerlines/core\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport defu from \"defu\";\nimport { build } from \"esbuild\";\nimport {\n DEFAULT_ESBUILD_CONFIG,\n resolveEntry,\n resolveOptions\n} from \"./helpers/resolve-options\";\nimport { createEsbuildPlugin } from \"./helpers/unplugin\";\nimport { EsbuildPluginContext, EsbuildPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n esbuild?: EsbuildPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends EsbuildPluginContext = EsbuildPluginContext\n>(\n options: EsbuildPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"esbuild\",\n config() {\n return {\n output: {\n format: [\"esm\"]\n },\n esbuild: {\n ...DEFAULT_ESBUILD_CONFIG,\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Esbuild build process...\");\n\n const options = defu(\n {\n entryPoints: resolveEntry(this, this.entry),\n plugins: [createEsbuildPlugin(this)]\n },\n resolveOptions(this)\n );\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Esbuild configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AA0CA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,MAAM,EAChB;IACD,SAAS;KACP,GAAG;KACH,GAAG;KACJ;IACF;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,oCAAoC;GAE/C,MAAM,UAAU,KACd;IACE,aAAa,aAAa,MAAM,KAAK,MAAM;IAC3C,SAAS,CAAC,oBAAoB,KAAK,CAAC;IACrC,EACD,eAAe,KAAK,CACrB;AAED,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,qCAAqC,aAAa,QAAQ;IACpE,CAAC;AAEF,SAAM,MAAM,QAAQ;;EAEvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-esbuild",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.456",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using esbuild.",
|
|
6
6
|
"keywords": ["esbuild", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"peerDependencies": { "esbuild": ">=0.27.3" },
|
|
84
84
|
"peerDependenciesMeta": { "esbuild": { "optional": false } },
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@powerlines/core": "^0.46.
|
|
86
|
+
"@powerlines/core": "^0.46.6",
|
|
87
87
|
"@stryke/fs": "^0.33.70",
|
|
88
88
|
"@stryke/helpers": "^0.10.12",
|
|
89
89
|
"@stryke/path": "^0.28.2",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": { "@types/node": "^25.6.0", "esbuild": "^0.27.7" },
|
|
97
97
|
"publishConfig": { "access": "public" },
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "610c4c943933458c5f433b9002d8c187625b2d3f"
|
|
99
99
|
}
|