@powerlines/plugin-esbuild 0.2.0 → 0.3.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/dist/{chunk-4LCU5I5Q.cjs → chunk-D52Z6NPM.cjs} +3 -3
- package/dist/{chunk-4LCU5I5Q.cjs.map → chunk-D52Z6NPM.cjs.map} +1 -1
- package/dist/{chunk-5M2RJ6V6.js → chunk-KU7TL74M.js} +3 -3
- package/dist/{chunk-5M2RJ6V6.js.map → chunk-KU7TL74M.js.map} +1 -1
- package/dist/helpers/index.cjs +2 -2
- package/dist/helpers/index.js +1 -1
- package/dist/helpers/unplugin.cjs +2 -2
- package/dist/helpers/unplugin.js +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-R6NPMTZP.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkD52Z6NPM_cjs = require('../chunk-D52Z6NPM.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "createESBuildPlugin", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkD52Z6NPM_cjs.createESBuildPlugin; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkD52Z6NPM_cjs = require('../chunk-D52Z6NPM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createESBuildPlugin", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkD52Z6NPM_cjs.createESBuildPlugin; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=unplugin.cjs.map
|
|
12
12
|
//# sourceMappingURL=unplugin.cjs.map
|
package/dist/helpers/unplugin.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('./chunk-R6NPMTZP.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkD52Z6NPM_cjs = require('./chunk-D52Z6NPM.cjs');
|
|
7
7
|
require('./chunk-ZJGSECAJ.cjs');
|
|
8
8
|
require('./chunk-MTB74RUM.cjs');
|
|
9
9
|
var defu = require('defu');
|
|
@@ -34,12 +34,12 @@ function resolveESBuildEntry(context, entryPoints = []) {
|
|
|
34
34
|
if (isString.isString(entry)) {
|
|
35
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
36
|
} else {
|
|
37
|
-
ret[entry.output ||
|
|
37
|
+
ret[entry.output || chunkD52Z6NPM_cjs.resolveEntryOutput(context, entry.input || entry)] = chunkD52Z6NPM_cjs.resolveEntryInputFile(context, entry.input || entry);
|
|
38
38
|
}
|
|
39
39
|
return ret;
|
|
40
40
|
}, {});
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
chunkD52Z6NPM_cjs.__name(resolveESBuildEntry, "resolveESBuildEntry");
|
|
43
43
|
function extractESBuildConfig(context) {
|
|
44
44
|
return defu__default.default({
|
|
45
45
|
alias: context.fs.builtinIdMap.keys().reduce((ret, id) => {
|
|
@@ -62,10 +62,10 @@ function extractESBuildConfig(context) {
|
|
|
62
62
|
sourcemap: context.config.mode === "development"
|
|
63
63
|
}, DEFAULT_ESBUILD_CONFIG);
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
chunkD52Z6NPM_cjs.__name(extractESBuildConfig, "extractESBuildConfig");
|
|
66
66
|
|
|
67
67
|
// src/index.ts
|
|
68
|
-
var plugin = /* @__PURE__ */
|
|
68
|
+
var plugin = /* @__PURE__ */ chunkD52Z6NPM_cjs.__name((options = {}) => {
|
|
69
69
|
return {
|
|
70
70
|
name: "esbuild",
|
|
71
71
|
config() {
|
|
@@ -93,7 +93,7 @@ var plugin = /* @__PURE__ */ chunk4LCU5I5Q_cjs.__name((options = {}) => {
|
|
|
93
93
|
await esbuild.build(defu__default.default({
|
|
94
94
|
entryPoints: resolveESBuildEntry(this, this.entry),
|
|
95
95
|
plugins: [
|
|
96
|
-
|
|
96
|
+
chunkD52Z6NPM_cjs.createESBuildPlugin(this)
|
|
97
97
|
]
|
|
98
98
|
}, extractESBuildConfig(this)));
|
|
99
99
|
}
|
|
@@ -103,7 +103,7 @@ var index_default = plugin;
|
|
|
103
103
|
|
|
104
104
|
Object.defineProperty(exports, "createESBuildPlugin", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkD52Z6NPM_cjs.createESBuildPlugin; }
|
|
107
107
|
});
|
|
108
108
|
exports.default = index_default;
|
|
109
109
|
exports.plugin = plugin;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './chunk-EWDQEFTW.js';
|
|
2
|
-
import { __name, resolveEntryInputFile, resolveEntryOutput, createESBuildPlugin } from './chunk-
|
|
3
|
-
export { createESBuildPlugin } from './chunk-
|
|
2
|
+
import { __name, resolveEntryInputFile, resolveEntryOutput, createESBuildPlugin } from './chunk-KU7TL74M.js';
|
|
3
|
+
export { createESBuildPlugin } from './chunk-KU7TL74M.js';
|
|
4
4
|
import './chunk-54IL5JZD.js';
|
|
5
5
|
import './chunk-DXDH2OBY.js';
|
|
6
6
|
import defu from 'defu';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-esbuild",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
"defu": "^6.1.4",
|
|
135
135
|
"esbuild": "^0.25.11",
|
|
136
136
|
"jiti": "^2.6.1",
|
|
137
|
-
"powerlines": "^0.
|
|
137
|
+
"powerlines": "^0.3.0",
|
|
138
138
|
"unplugin": "^2.3.10"
|
|
139
139
|
},
|
|
140
|
-
"devDependencies": { "@powerlines/nx": "^0.
|
|
140
|
+
"devDependencies": { "@powerlines/nx": "^0.3.0", "@types/node": "^22.18.11" },
|
|
141
141
|
"publishConfig": { "access": "public" },
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "fe5e201169810dd966ee328fa3dabf57077eea36"
|
|
143
143
|
}
|