@powerlines/plugin-esbuild 0.5.0 → 0.6.0
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/package.json +10 -6
- package/dist/chunk-54IL5JZD.js +0 -3
- package/dist/chunk-54IL5JZD.js.map +0 -1
- package/dist/chunk-DKSPBMRI.cjs +0 -1472
- package/dist/chunk-DKSPBMRI.cjs.map +0 -1
- package/dist/chunk-DXDH2OBY.js +0 -3
- package/dist/chunk-DXDH2OBY.js.map +0 -1
- package/dist/chunk-EWDQEFTW.js +0 -3
- package/dist/chunk-EWDQEFTW.js.map +0 -1
- package/dist/chunk-FGTVQNHX.js +0 -1461
- package/dist/chunk-FGTVQNHX.js.map +0 -1
- package/dist/chunk-MTB74RUM.cjs +0 -4
- package/dist/chunk-MTB74RUM.cjs.map +0 -1
- package/dist/chunk-R6NPMTZP.cjs +0 -4
- package/dist/chunk-R6NPMTZP.cjs.map +0 -1
- package/dist/chunk-ZJGSECAJ.cjs +0 -4
- package/dist/chunk-ZJGSECAJ.cjs.map +0 -1
- package/dist/helpers/index.cjs +0 -13
- package/dist/helpers/index.cjs.map +0 -1
- package/dist/helpers/index.d.cts +0 -6
- package/dist/helpers/index.d.ts +0 -6
- package/dist/helpers/index.js +0 -4
- package/dist/helpers/index.js.map +0 -1
- package/dist/helpers/unplugin.cjs +0 -12
- package/dist/helpers/unplugin.cjs.map +0 -1
- package/dist/helpers/unplugin.d.cts +0 -9
- package/dist/helpers/unplugin.d.ts +0 -9
- package/dist/helpers/unplugin.js +0 -3
- package/dist/helpers/unplugin.js.map +0 -1
- package/dist/index.cjs +0 -107
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -15
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -95
- package/dist/index.js.map +0 -1
- package/dist/types/index.cjs +0 -7
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.d.cts +0 -4
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.js +0 -4
- package/dist/types/index.js.map +0 -1
- package/dist/types/plugin.cjs +0 -6
- package/dist/types/plugin.cjs.map +0 -1
- package/dist/types/plugin.d.cts +0 -9
- package/dist/types/plugin.d.ts +0 -9
- package/dist/types/plugin.js +0 -3
- package/dist/types/plugin.js.map +0 -1
package/dist/index.cjs
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
require('./chunk-R6NPMTZP.cjs');
|
|
6
|
-
var chunkDKSPBMRI_cjs = require('./chunk-DKSPBMRI.cjs');
|
|
7
|
-
require('./chunk-ZJGSECAJ.cjs');
|
|
8
|
-
require('./chunk-MTB74RUM.cjs');
|
|
9
|
-
var defu = require('defu');
|
|
10
|
-
var esbuild = require('esbuild');
|
|
11
|
-
var filePathFns = require('@stryke/path/file-path-fns');
|
|
12
|
-
var replace = require('@stryke/path/replace');
|
|
13
|
-
var isString = require('@stryke/type-checks/is-string');
|
|
14
|
-
|
|
15
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
-
|
|
17
|
-
var defu__default = /*#__PURE__*/_interopDefault(defu);
|
|
18
|
-
|
|
19
|
-
var DEFAULT_ESBUILD_CONFIG = {
|
|
20
|
-
target: "esnext",
|
|
21
|
-
platform: "neutral",
|
|
22
|
-
format: "esm",
|
|
23
|
-
write: true,
|
|
24
|
-
minify: true,
|
|
25
|
-
sourcemap: false,
|
|
26
|
-
bundle: true,
|
|
27
|
-
treeShaking: true,
|
|
28
|
-
keepNames: true,
|
|
29
|
-
splitting: true,
|
|
30
|
-
logLevel: "silent"
|
|
31
|
-
};
|
|
32
|
-
function resolveESBuildEntry(context, entryPoints = []) {
|
|
33
|
-
return entryPoints.reduce((ret, entry) => {
|
|
34
|
-
if (isString.isString(entry)) {
|
|
35
|
-
ret[replace.replacePath(entry, context.config.sourceRoot || context.config.projectRoot).replace(`.${filePathFns.findFileExtensionSafe(entry)}`, "")] = replace.replacePath(entry, context.config.sourceRoot || context.config.projectRoot);
|
|
36
|
-
} else {
|
|
37
|
-
ret[entry.output || chunkDKSPBMRI_cjs.resolveEntryOutput(context, entry.input || entry)] = chunkDKSPBMRI_cjs.resolveEntryInputFile(context, entry.input || entry);
|
|
38
|
-
}
|
|
39
|
-
return ret;
|
|
40
|
-
}, {});
|
|
41
|
-
}
|
|
42
|
-
chunkDKSPBMRI_cjs.__name(resolveESBuildEntry, "resolveESBuildEntry");
|
|
43
|
-
function extractESBuildConfig(context) {
|
|
44
|
-
return defu__default.default({
|
|
45
|
-
alias: context.fs.builtinIdMap.keys().reduce((ret, id) => {
|
|
46
|
-
const path = context.fs.builtinIdMap.get(id);
|
|
47
|
-
if (path) {
|
|
48
|
-
ret[id] = path;
|
|
49
|
-
}
|
|
50
|
-
return ret;
|
|
51
|
-
}, {})
|
|
52
|
-
}, context.config.build.variant === "esbuild" ? context.config.override : {}, {
|
|
53
|
-
format: Array.isArray(context.config.output.format) ? context.config.output.format[0] : context.config.output.format,
|
|
54
|
-
platform: context.config.build.platform,
|
|
55
|
-
treeShaking: Boolean(context.config.build?.treeshake) || context.config.build?.treeShaking,
|
|
56
|
-
outdir: context.config.output.outputPath,
|
|
57
|
-
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
58
|
-
tsconfigRaw: context.tsconfig.tsconfigJson
|
|
59
|
-
}, context.config.build.variant === "esbuild" ? context.config.build : {}, {
|
|
60
|
-
minify: context.config.mode !== "development",
|
|
61
|
-
metafile: context.config.mode === "development",
|
|
62
|
-
sourcemap: context.config.mode === "development"
|
|
63
|
-
}, DEFAULT_ESBUILD_CONFIG);
|
|
64
|
-
}
|
|
65
|
-
chunkDKSPBMRI_cjs.__name(extractESBuildConfig, "extractESBuildConfig");
|
|
66
|
-
|
|
67
|
-
// src/index.ts
|
|
68
|
-
var plugin = /* @__PURE__ */ chunkDKSPBMRI_cjs.__name((options = {}) => {
|
|
69
|
-
return {
|
|
70
|
-
name: "esbuild",
|
|
71
|
-
config() {
|
|
72
|
-
return {
|
|
73
|
-
output: {
|
|
74
|
-
format: [
|
|
75
|
-
"esm"
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
build: {
|
|
79
|
-
...DEFAULT_ESBUILD_CONFIG,
|
|
80
|
-
...options,
|
|
81
|
-
variant: "esbuild"
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
},
|
|
85
|
-
configResolved() {
|
|
86
|
-
this.config.build = extractESBuildConfig(this);
|
|
87
|
-
},
|
|
88
|
-
async build() {
|
|
89
|
-
await esbuild.build(defu__default.default({
|
|
90
|
-
entryPoints: resolveESBuildEntry(this, this.entry),
|
|
91
|
-
plugins: [
|
|
92
|
-
chunkDKSPBMRI_cjs.createESBuildPlugin(this)
|
|
93
|
-
]
|
|
94
|
-
}, extractESBuildConfig(this)));
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
}, "plugin");
|
|
98
|
-
var index_default = plugin;
|
|
99
|
-
|
|
100
|
-
Object.defineProperty(exports, "createESBuildPlugin", {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
get: function () { return chunkDKSPBMRI_cjs.createESBuildPlugin; }
|
|
103
|
-
});
|
|
104
|
-
exports.default = index_default;
|
|
105
|
-
exports.plugin = plugin;
|
|
106
|
-
//# sourceMappingURL=index.cjs.map
|
|
107
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../powerlines/src/lib/build/esbuild.ts","../src/index.ts"],"names":["DEFAULT_ESBUILD_CONFIG","target","platform","format","write","minify","sourcemap","bundle","treeShaking","keepNames","splitting","logLevel","resolveESBuildEntry","context","entryPoints","reduce","ret","entry","isString","replacePath","config","sourceRoot","projectRoot","replace","findFileExtensionSafe","output","resolveEntryOutput","input","resolveEntryInputFile","extractESBuildConfig","defu","alias","fs","builtinIdMap","keys","id","path","get","build","variant","override","Array","isArray","Boolean","treeshake","outdir","outputPath","tsconfig","tsconfigFilePath","tsconfigRaw","tsconfigJson","mode","metafile","plugin","__name","options","name","configResolved","plugins","createESBuildPlugin"],"mappings":";;;;;;;;;;;;;;;;;;AAqFO,IAAMA,sBAAAA,GAA8D;EACzEC,MAAAA,EAAQ,QAAA;EACRC,QAAAA,EAAU,SAAA;EACVC,MAAAA,EAAQ,KAAA;EACRC,KAAAA,EAAO,IAAA;EACPC,MAAAA,EAAQ,IAAA;EACRC,SAAAA,EAAW,KAAA;EACXC,MAAAA,EAAQ,IAAA;EACRC,WAAAA,EAAa,IAAA;EACbC,SAAAA,EAAW,IAAA;EACXC,SAAAA,EAAW,IAAA;EACXC,QAAAA,EAAU;AACZ,CAAA;AASO,SAASC,mBAAAA,CACdC,OAAAA,EACAC,WAAAA,GAAwD,EAAA,EAAE;AAE1D,EAAA,OAAOA,WAAAA,CAAYC,MAAAA,CACjB,CAACC,GAAAA,EAAKC,KAAAA,KAAAA;AACJ,IAAA,IAAIC,iBAAAA,CAASD,KAAAA,CAAAA,EAAQ;AACnBD,MAAAA,GAAAA,CACEG,mBAAAA,CACEF,KAAAA,EACAJ,OAAAA,CAAQO,MAAAA,CAAOC,UAAAA,IAAcR,QAAQO,MAAAA,CAAOE,WAAW,CAAA,CACvDC,OAAAA,CAAQ,CAAA,CAAA,EAAIC,iCAAAA,CAAsBP,KAAAA,CAAAA,CAAAA,CAAAA,EAAU,EAAA,CAAA,CAAA,GAC5CE,mBAAAA,CACFF,KAAAA,EACAJ,OAAAA,CAAQO,MAAAA,CAAOC,UAAAA,IAAcR,OAAAA,CAAQO,MAAAA,CAAOE,WAAW,CAAA;IAE3D,CAAA,MAAO;AACLN,MAAAA,GAAAA,CAAIC,KAAAA,CAAMQ,MAAAA,IAAUC,oCAAAA,CAAmBb,OAAAA,EAASI,KAAAA,CAAMU,KAAAA,IAASV,KAAAA,CAAAA,CAAAA,GAC7DW,uCAAAA,CAAsBf,O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B,IAAI;;OACpC,EACA9B,oBAAAA,CAAqB,IAAI,CAAA,CAAA,CAAA;AAG/B,IAAA;AACF,GAAA;AACF,CAAA,EAlCsB,QAAA;AAoCtB,IAAA,aAAA,GAAewB","file":"index.cjs","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 { findFileExtensionSafe } from \"@stryke/path/file-path-fns\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport defu from \"defu\";\nimport { Format, LogLevel, Platform } from \"esbuild\";\nimport {\n ESBuildBuildConfig,\n ESBuildResolvedBuildConfig,\n TsupBuildConfig\n} from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport type { ResolvedEntryTypeDefinition } from \"../../types/resolved\";\nimport { resolveEntryInputFile, resolveEntryOutput } from \"../entry\";\n\n// const resolverPlugin = (\n// context: Context,\n// options: Pick<\n// BuildResolvedConfig,\n// \"external\" | \"noExternal\" | \"skipNodeModulesBundle\"\n// > = {}\n// ): Plugin => {\n// return {\n// name: \"powerlines:resolver\",\n// setup(build) {\n// const skipNodeModulesBundle =\n// options.skipNodeModulesBundle ??\n// context.config.build.skipNodeModulesBundle;\n// const external = options.external ?? context.config.build.external ?? [];\n// const noExternal =\n// options.noExternal ?? context.config.build.noExternal ?? [];\n// const resolvePatterns = skipNodeModulesBundle\n// ? tsconfigPathsToRegExp(context.tsconfig.options.paths ?? [])\n// : [];\n\n// const handle = async (args: OnResolveArgs) => {\n// const result = await handleResolveId(\n// context,\n// {\n// id: args.path,\n// importer: args.importer,\n// options: {\n// isEntry: false\n// }\n// },\n// {\n// skipNodeModulesBundle,\n// external,\n// noExternal,\n// resolvePatterns\n// }\n// );\n// if (!result) {\n// return;\n// }\n\n// return {\n// path: result?.id,\n// external: result?.external\n// };\n// };\n\n// build.onResolve({ filter: /.*/ }, handle);\n// build.onResolve({ filter: /^storm:/ }, handle);\n// }\n// };\n// };\n\nexport const DEFAULT_ESBUILD_CONFIG: Partial<ESBuildResolvedBuildConfig> = {\n target: \"esnext\",\n platform: \"neutral\" as Platform,\n format: \"esm\" as Format,\n write: true,\n minify: true,\n sourcemap: false,\n bundle: true,\n treeShaking: true,\n keepNames: true,\n splitting: true,\n logLevel: \"silent\" as LogLevel\n};\n\n/**\n * Resolves the entry options for esbuild.\n *\n * @param context - The build context.\n * @param entryPoints - The entry points to resolve.\n * @returns The resolved entry options.\n */\nexport function resolveESBuildEntry(\n context: Context,\n entryPoints: ResolvedEntryTypeDefinition[] | string[] = []\n): ESBuildResolvedBuildConfig[\"entryPoints\"] {\n return entryPoints.reduce(\n (ret, entry) => {\n if (isString(entry)) {\n ret[\n replacePath(\n entry,\n context.config.sourceRoot || context.config.projectRoot\n ).replace(`.${findFileExtensionSafe(entry)}`, \"\")\n ] = replacePath(\n entry,\n context.config.sourceRoot || context.config.projectRoot\n );\n } else {\n ret[entry.output || resolveEntryOutput(context, entry.input || entry)] =\n resolveEntryInputFile(context, entry.input || entry);\n }\n\n return ret;\n },\n {} as Record<string, string>\n );\n}\n\n/**\n * Resolves the esbuild options.\n *\n * @param context - The build context.\n * @returns The resolved esbuild options.\n */\nexport function extractESBuildConfig(\n context: Context\n): ESBuildResolvedBuildConfig {\n return defu(\n {\n alias: context.fs.builtinIdMap.keys().reduce(\n (ret, id) => {\n const path = context.fs.builtinIdMap.get(id);\n if (path) {\n ret[id] = path;\n }\n\n return ret;\n },\n {} as Record<string, string>\n )\n },\n context.config.build.variant === \"esbuild\" ? context.config.override : {},\n {\n format: (Array.isArray(context.config.output.format)\n ? context.config.output.format[0]\n : context.config.output.format) as Format,\n platform: context.config.build.platform,\n treeShaking:\n Boolean((context.config.build as TsupBuildConfig)?.treeshake) ||\n (context.config.build as ESBuildBuildConfig)?.treeShaking,\n outdir: context.config.output.outputPath,\n tsconfig: context.tsconfig.tsconfigFilePath,\n tsconfigRaw: context.tsconfig.tsconfigJson\n },\n context.config.build.variant === \"esbuild\" ? context.config.build : {},\n {\n minify: context.config.mode !== \"development\",\n metafile: context.config.mode === \"development\",\n sourcemap: context.config.mode === \"development\"\n },\n DEFAULT_ESBUILD_CONFIG\n );\n}\n","/* -------------------------------------------------------------------\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 defu from \"defu\";\nimport { build } from \"esbuild\";\nimport {\n DEFAULT_ESBUILD_CONFIG,\n extractESBuildConfig,\n resolveESBuildEntry\n} from \"powerlines/lib/build/esbuild\";\nimport { ESBuildUserConfig } from \"powerlines/types/config\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { createESBuildPlugin } from \"./helpers/unplugin\";\nimport { ESBuildPluginContext, ESBuildPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\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 build: {\n ...DEFAULT_ESBUILD_CONFIG,\n ...options,\n variant: \"esbuild\"\n }\n } as Partial<ESBuildUserConfig>;\n },\n configResolved() {\n this.config.build = extractESBuildConfig(this);\n },\n async build() {\n await build(\n defu(\n {\n entryPoints: resolveESBuildEntry(this, this.entry),\n plugins: [createESBuildPlugin(this)]\n },\n extractESBuildConfig(this)\n )\n );\n }\n };\n};\n\nexport default plugin;\n"]}
|
package/dist/index.d.cts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'powerlines/types/plugin';
|
|
2
|
-
import { ESBuildPluginContext, ESBuildPluginOptions } from './types/plugin.cjs';
|
|
3
|
-
export { ESBuildPluginResolvedConfig } from './types/plugin.cjs';
|
|
4
|
-
export { createESBuildPlugin } from './helpers/unplugin.cjs';
|
|
5
|
-
import 'powerlines/types/build';
|
|
6
|
-
import 'powerlines/types/context';
|
|
7
|
-
import 'powerlines/types/resolved';
|
|
8
|
-
import 'esbuild';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
12
|
-
*/
|
|
13
|
-
declare const plugin: <TContext extends ESBuildPluginContext = ESBuildPluginContext>(options?: ESBuildPluginOptions) => Plugin<TContext>;
|
|
14
|
-
|
|
15
|
-
export { ESBuildPluginContext, ESBuildPluginOptions, plugin as default, plugin };
|
package/dist/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'powerlines/types/plugin';
|
|
2
|
-
import { ESBuildPluginContext, ESBuildPluginOptions } from './types/plugin.js';
|
|
3
|
-
export { ESBuildPluginResolvedConfig } from './types/plugin.js';
|
|
4
|
-
export { createESBuildPlugin } from './helpers/unplugin.js';
|
|
5
|
-
import 'powerlines/types/build';
|
|
6
|
-
import 'powerlines/types/context';
|
|
7
|
-
import 'powerlines/types/resolved';
|
|
8
|
-
import 'esbuild';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
12
|
-
*/
|
|
13
|
-
declare const plugin: <TContext extends ESBuildPluginContext = ESBuildPluginContext>(options?: ESBuildPluginOptions) => Plugin<TContext>;
|
|
14
|
-
|
|
15
|
-
export { ESBuildPluginContext, ESBuildPluginOptions, plugin as default, plugin };
|
package/dist/index.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import './chunk-EWDQEFTW.js';
|
|
2
|
-
import { __name, resolveEntryInputFile, resolveEntryOutput, createESBuildPlugin } from './chunk-FGTVQNHX.js';
|
|
3
|
-
export { createESBuildPlugin } from './chunk-FGTVQNHX.js';
|
|
4
|
-
import './chunk-54IL5JZD.js';
|
|
5
|
-
import './chunk-DXDH2OBY.js';
|
|
6
|
-
import defu from 'defu';
|
|
7
|
-
import { build } from 'esbuild';
|
|
8
|
-
import { findFileExtensionSafe } from '@stryke/path/file-path-fns';
|
|
9
|
-
import { replacePath } from '@stryke/path/replace';
|
|
10
|
-
import { isString } from '@stryke/type-checks/is-string';
|
|
11
|
-
|
|
12
|
-
var DEFAULT_ESBUILD_CONFIG = {
|
|
13
|
-
target: "esnext",
|
|
14
|
-
platform: "neutral",
|
|
15
|
-
format: "esm",
|
|
16
|
-
write: true,
|
|
17
|
-
minify: true,
|
|
18
|
-
sourcemap: false,
|
|
19
|
-
bundle: true,
|
|
20
|
-
treeShaking: true,
|
|
21
|
-
keepNames: true,
|
|
22
|
-
splitting: true,
|
|
23
|
-
logLevel: "silent"
|
|
24
|
-
};
|
|
25
|
-
function resolveESBuildEntry(context, entryPoints = []) {
|
|
26
|
-
return entryPoints.reduce((ret, entry) => {
|
|
27
|
-
if (isString(entry)) {
|
|
28
|
-
ret[replacePath(entry, context.config.sourceRoot || context.config.projectRoot).replace(`.${findFileExtensionSafe(entry)}`, "")] = replacePath(entry, context.config.sourceRoot || context.config.projectRoot);
|
|
29
|
-
} else {
|
|
30
|
-
ret[entry.output || resolveEntryOutput(context, entry.input || entry)] = resolveEntryInputFile(context, entry.input || entry);
|
|
31
|
-
}
|
|
32
|
-
return ret;
|
|
33
|
-
}, {});
|
|
34
|
-
}
|
|
35
|
-
__name(resolveESBuildEntry, "resolveESBuildEntry");
|
|
36
|
-
function extractESBuildConfig(context) {
|
|
37
|
-
return defu({
|
|
38
|
-
alias: context.fs.builtinIdMap.keys().reduce((ret, id) => {
|
|
39
|
-
const path = context.fs.builtinIdMap.get(id);
|
|
40
|
-
if (path) {
|
|
41
|
-
ret[id] = path;
|
|
42
|
-
}
|
|
43
|
-
return ret;
|
|
44
|
-
}, {})
|
|
45
|
-
}, context.config.build.variant === "esbuild" ? context.config.override : {}, {
|
|
46
|
-
format: Array.isArray(context.config.output.format) ? context.config.output.format[0] : context.config.output.format,
|
|
47
|
-
platform: context.config.build.platform,
|
|
48
|
-
treeShaking: Boolean(context.config.build?.treeshake) || context.config.build?.treeShaking,
|
|
49
|
-
outdir: context.config.output.outputPath,
|
|
50
|
-
tsconfig: context.tsconfig.tsconfigFilePath,
|
|
51
|
-
tsconfigRaw: context.tsconfig.tsconfigJson
|
|
52
|
-
}, context.config.build.variant === "esbuild" ? context.config.build : {}, {
|
|
53
|
-
minify: context.config.mode !== "development",
|
|
54
|
-
metafile: context.config.mode === "development",
|
|
55
|
-
sourcemap: context.config.mode === "development"
|
|
56
|
-
}, DEFAULT_ESBUILD_CONFIG);
|
|
57
|
-
}
|
|
58
|
-
__name(extractESBuildConfig, "extractESBuildConfig");
|
|
59
|
-
|
|
60
|
-
// src/index.ts
|
|
61
|
-
var plugin = /* @__PURE__ */ __name((options = {}) => {
|
|
62
|
-
return {
|
|
63
|
-
name: "esbuild",
|
|
64
|
-
config() {
|
|
65
|
-
return {
|
|
66
|
-
output: {
|
|
67
|
-
format: [
|
|
68
|
-
"esm"
|
|
69
|
-
]
|
|
70
|
-
},
|
|
71
|
-
build: {
|
|
72
|
-
...DEFAULT_ESBUILD_CONFIG,
|
|
73
|
-
...options,
|
|
74
|
-
variant: "esbuild"
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
},
|
|
78
|
-
configResolved() {
|
|
79
|
-
this.config.build = extractESBuildConfig(this);
|
|
80
|
-
},
|
|
81
|
-
async build() {
|
|
82
|
-
await build(defu({
|
|
83
|
-
entryPoints: resolveESBuildEntry(this, this.entry),
|
|
84
|
-
plugins: [
|
|
85
|
-
createESBuildPlugin(this)
|
|
86
|
-
]
|
|
87
|
-
}, extractESBuildConfig(this)));
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
}, "plugin");
|
|
91
|
-
var index_default = plugin;
|
|
92
|
-
|
|
93
|
-
export { index_default as default, plugin };
|
|
94
|
-
//# sourceMappingURL=index.js.map
|
|
95
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../powerlines/src/lib/build/esbuild.ts","../src/index.ts"],"names":["DEFAULT_ESBUILD_CONFIG","target","platform","format","write","minify","sourcemap","bundle","treeShaking","keepNames","splitting","logLevel","resolveESBuildEntry","context","entryPoints","reduce","ret","entry","isString","replacePath","config","sourceRoot","projectRoot","replace","findFileExtensionSafe","output","resolveEntryOutput","input","resolveEntryInputFile","extractESBuildConfig","defu","alias","fs","builtinIdMap","keys","id","path","get","build","variant","override","Array","isArray","Boolean","treeshake","outdir","outputPath","tsconfig","tsconfigFilePath","tsconfigRaw","tsconfigJson","mode","metafile","plugin","options","name","configResolved","plugins","createESBuildPlugin"],"mappings":";;;;;;;;;;;AAqFO,IAAMA,sBAAAA,GAA8D;EACzEC,MAAAA,EAAQ,QAAA;EACRC,QAAAA,EAAU,SAAA;EACVC,MAAAA,EAAQ,KAAA;EACRC,KAAAA,EAAO,IAAA;EACPC,MAAAA,EAAQ,IAAA;EACRC,SAAAA,EAAW,KAAA;EACXC,MAAAA,EAAQ,IAAA;EACRC,WAAAA,EAAa,IAAA;EACbC,SAAAA,EAAW,IAAA;EACXC,SAAAA,EAAW,IAAA;EACXC,QAAAA,EAAU;AACZ,CAAA;AASO,SAASC,mBA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AAA;AAEJ;AAtCgB6B,MAAAA,CAAAA,oBAAAA,EAAAA,sBAAAA,CAAAA;;;ACvGT,IAAMwB,MAAAA,mBAAS,MAAA,CAAA,CAGpBC,OAAAA,GAAgC,EAAC,KAAC;AAElC,EAAA,OAAO;IACLC,IAAAA,EAAM,SAAA;IACNnC,MAAAA,GAAAA;AACE,MAAA,OAAO;QACLK,MAAAA,EAAQ;UACNtB,MAAAA,EAAQ;AAAC,YAAA;;AACX,SAAA;QACAmC,KAAAA,EAAO;UACL,GAAGtC,sBAAAA;UACH,GAAGsD,OAAAA;UACHf,OAAAA,EAAS;AACX;AACF,OAAA;AACF,IAAA,CAAA;IACAiB,cAAAA,GAAAA;AACE,MAAA,IAAA,CAAKpC,MAAAA,CAAOkB,KAAAA,GAAQT,oBAAAA,CAAqB,IAAI,CAAA;AAC/C,IAAA,CAAA;AACA,IAAA,MAAMS,KAAAA,GAAAA;AACJ,MAAA,MAAMA,MACJR,IAAAA,CACE;QACEhB,WAAAA,EAAaF,mBAAAA,CAAoB,IAAA,EAAM,IAAA,CAAKK,KAAK,CAAA;QACjDwC,OAAAA,EAAS;AAACC,UAAAA,mBAAAA,CAAoB,IAAI;;OACpC,EACA7B,oBAAAA,CAAqB,IAAI,CAAA,CAAA,CAAA;AAG/B,IAAA;AACF,GAAA;AACF,CAAA,EAlCsB,QAAA;AAoCtB,IAAA,aAAA,GAAewB","file":"index.js","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 { findFileExtensionSafe } from \"@stryke/path/file-path-fns\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport defu from \"defu\";\nimport { Format, LogLevel, Platform } from \"esbuild\";\nimport {\n ESBuildBuildConfig,\n ESBuildResolvedBuildConfig,\n TsupBuildConfig\n} from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport type { ResolvedEntryTypeDefinition } from \"../../types/resolved\";\nimport { resolveEntryInputFile, resolveEntryOutput } from \"../entry\";\n\n// const resolverPlugin = (\n// context: Context,\n// options: Pick<\n// BuildResolvedConfig,\n// \"external\" | \"noExternal\" | \"skipNodeModulesBundle\"\n// > = {}\n// ): Plugin => {\n// return {\n// name: \"powerlines:resolver\",\n// setup(build) {\n// const skipNodeModulesBundle =\n// options.skipNodeModulesBundle ??\n// context.config.build.skipNodeModulesBundle;\n// const external = options.external ?? context.config.build.external ?? [];\n// const noExternal =\n// options.noExternal ?? context.config.build.noExternal ?? [];\n// const resolvePatterns = skipNodeModulesBundle\n// ? tsconfigPathsToRegExp(context.tsconfig.options.paths ?? [])\n// : [];\n\n// const handle = async (args: OnResolveArgs) => {\n// const result = await handleResolveId(\n// context,\n// {\n// id: args.path,\n// importer: args.importer,\n// options: {\n// isEntry: false\n// }\n// },\n// {\n// skipNodeModulesBundle,\n// external,\n// noExternal,\n// resolvePatterns\n// }\n// );\n// if (!result) {\n// return;\n// }\n\n// return {\n// path: result?.id,\n// external: result?.external\n// };\n// };\n\n// build.onResolve({ filter: /.*/ }, handle);\n// build.onResolve({ filter: /^storm:/ }, handle);\n// }\n// };\n// };\n\nexport const DEFAULT_ESBUILD_CONFIG: Partial<ESBuildResolvedBuildConfig> = {\n target: \"esnext\",\n platform: \"neutral\" as Platform,\n format: \"esm\" as Format,\n write: true,\n minify: true,\n sourcemap: false,\n bundle: true,\n treeShaking: true,\n keepNames: true,\n splitting: true,\n logLevel: \"silent\" as LogLevel\n};\n\n/**\n * Resolves the entry options for esbuild.\n *\n * @param context - The build context.\n * @param entryPoints - The entry points to resolve.\n * @returns The resolved entry options.\n */\nexport function resolveESBuildEntry(\n context: Context,\n entryPoints: ResolvedEntryTypeDefinition[] | string[] = []\n): ESBuildResolvedBuildConfig[\"entryPoints\"] {\n return entryPoints.reduce(\n (ret, entry) => {\n if (isString(entry)) {\n ret[\n replacePath(\n entry,\n context.config.sourceRoot || context.config.projectRoot\n ).replace(`.${findFileExtensionSafe(entry)}`, \"\")\n ] = replacePath(\n entry,\n context.config.sourceRoot || context.config.projectRoot\n );\n } else {\n ret[entry.output || resolveEntryOutput(context, entry.input || entry)] =\n resolveEntryInputFile(context, entry.input || entry);\n }\n\n return ret;\n },\n {} as Record<string, string>\n );\n}\n\n/**\n * Resolves the esbuild options.\n *\n * @param context - The build context.\n * @returns The resolved esbuild options.\n */\nexport function extractESBuildConfig(\n context: Context\n): ESBuildResolvedBuildConfig {\n return defu(\n {\n alias: context.fs.builtinIdMap.keys().reduce(\n (ret, id) => {\n const path = context.fs.builtinIdMap.get(id);\n if (path) {\n ret[id] = path;\n }\n\n return ret;\n },\n {} as Record<string, string>\n )\n },\n context.config.build.variant === \"esbuild\" ? context.config.override : {},\n {\n format: (Array.isArray(context.config.output.format)\n ? context.config.output.format[0]\n : context.config.output.format) as Format,\n platform: context.config.build.platform,\n treeShaking:\n Boolean((context.config.build as TsupBuildConfig)?.treeshake) ||\n (context.config.build as ESBuildBuildConfig)?.treeShaking,\n outdir: context.config.output.outputPath,\n tsconfig: context.tsconfig.tsconfigFilePath,\n tsconfigRaw: context.tsconfig.tsconfigJson\n },\n context.config.build.variant === \"esbuild\" ? context.config.build : {},\n {\n minify: context.config.mode !== \"development\",\n metafile: context.config.mode === \"development\",\n sourcemap: context.config.mode === \"development\"\n },\n DEFAULT_ESBUILD_CONFIG\n );\n}\n","/* -------------------------------------------------------------------\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 defu from \"defu\";\nimport { build } from \"esbuild\";\nimport {\n DEFAULT_ESBUILD_CONFIG,\n extractESBuildConfig,\n resolveESBuildEntry\n} from \"powerlines/lib/build/esbuild\";\nimport { ESBuildUserConfig } from \"powerlines/types/config\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { createESBuildPlugin } from \"./helpers/unplugin\";\nimport { ESBuildPluginContext, ESBuildPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\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 build: {\n ...DEFAULT_ESBUILD_CONFIG,\n ...options,\n variant: \"esbuild\"\n }\n } as Partial<ESBuildUserConfig>;\n },\n configResolved() {\n this.config.build = extractESBuildConfig(this);\n },\n async build() {\n await build(\n defu(\n {\n entryPoints: resolveESBuildEntry(this, this.entry),\n plugins: [createESBuildPlugin(this)]\n },\n extractESBuildConfig(this)\n )\n );\n }\n };\n};\n\nexport default plugin;\n"]}
|
package/dist/types/index.cjs
DELETED
package/dist/types/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
package/dist/types/index.d.cts
DELETED
package/dist/types/index.d.ts
DELETED
package/dist/types/index.js
DELETED
package/dist/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/types/plugin.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"plugin.cjs"}
|
package/dist/types/plugin.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ESBuildBuildConfig } from 'powerlines/types/build';
|
|
2
|
-
import { PluginContext } from 'powerlines/types/context';
|
|
3
|
-
import { ESBuildResolvedConfig } from 'powerlines/types/resolved';
|
|
4
|
-
|
|
5
|
-
type ESBuildPluginOptions = Partial<ESBuildBuildConfig>;
|
|
6
|
-
type ESBuildPluginResolvedConfig = ESBuildResolvedConfig;
|
|
7
|
-
type ESBuildPluginContext<TResolvedConfig extends ESBuildPluginResolvedConfig = ESBuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
8
|
-
|
|
9
|
-
export type { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig };
|
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ESBuildBuildConfig } from 'powerlines/types/build';
|
|
2
|
-
import { PluginContext } from 'powerlines/types/context';
|
|
3
|
-
import { ESBuildResolvedConfig } from 'powerlines/types/resolved';
|
|
4
|
-
|
|
5
|
-
type ESBuildPluginOptions = Partial<ESBuildBuildConfig>;
|
|
6
|
-
type ESBuildPluginResolvedConfig = ESBuildResolvedConfig;
|
|
7
|
-
type ESBuildPluginContext<TResolvedConfig extends ESBuildPluginResolvedConfig = ESBuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
8
|
-
|
|
9
|
-
export type { ESBuildPluginContext, ESBuildPluginOptions, ESBuildPluginResolvedConfig };
|
package/dist/types/plugin.js
DELETED
package/dist/types/plugin.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"plugin.js"}
|