@cubing/dev-config 0.3.4 → 0.3.5
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/esbuild/es2022/index.js
CHANGED
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
// src/esbuild/es2022/index.ts
|
|
2
|
+
var common = {
|
|
3
|
+
format: "esm",
|
|
4
|
+
target: "es2022",
|
|
5
|
+
bundle: true,
|
|
6
|
+
splitting: true,
|
|
7
|
+
chunkNames: "chunks/[name]-[hash]",
|
|
8
|
+
sourcemap: true
|
|
9
|
+
};
|
|
10
|
+
function es2022App(options) {
|
|
11
|
+
return {
|
|
12
|
+
...common,
|
|
13
|
+
minify: !options?.dev
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function es2022Lib() {
|
|
17
|
+
return {
|
|
18
|
+
...es2022App(),
|
|
19
|
+
minify: false,
|
|
20
|
+
packages: "external"
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
es2022App,
|
|
25
|
+
es2022Lib
|
|
26
|
+
};
|
|
2
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/esbuild/es2022/index.ts"],
|
|
4
|
-
"sourcesContent": ["import type { BuildOptions } from \"esbuild\";\n\nconst common = {\n format: \"esm\",\n target: \"es2022\",\n\n bundle: true,\n splitting: true,\n\n chunkNames: \"chunks/[name]-[hash]\",\n sourcemap: true,\n} as const satisfies BuildOptions;\n\nexport function es2022App(options?: { dev?: boolean }): BuildOptions {\n return {\n ...common,\n minify: !options?.dev,\n };\n}\n\nexport function es2022Lib(): BuildOptions {\n return {\n ...es2022App(),\n packages: \"external\",\n };\n}\n"],
|
|
5
|
-
"mappings": "AAEA,
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["import type { BuildOptions } from \"esbuild\";\n\nconst common = {\n format: \"esm\",\n target: \"es2022\",\n\n bundle: true,\n splitting: true,\n\n chunkNames: \"chunks/[name]-[hash]\",\n sourcemap: true,\n} as const satisfies BuildOptions;\n\nexport function es2022App(options?: { dev?: boolean }): BuildOptions {\n return {\n ...common,\n minify: !options?.dev,\n };\n}\n\nexport function es2022Lib(): BuildOptions {\n return {\n ...es2022App(),\n minify: false,\n packages: \"external\",\n };\n}\n"],
|
|
5
|
+
"mappings": ";AAEA,IAAM,SAAS;AAAA,EACb,QAAQ;AAAA,EACR,QAAQ;AAAA,EAER,QAAQ;AAAA,EACR,WAAW;AAAA,EAEX,YAAY;AAAA,EACZ,WAAW;AACb;AAEO,SAAS,UAAU,SAA2C;AACnE,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ,CAAC,SAAS;AAAA,EACpB;AACF;AAEO,SAAS,YAA0B;AACxC,SAAO;AAAA,IACL,GAAG,UAAU;AAAA,IACb,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubing/dev-config",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"esbuild": "^0.25.3"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@biomejs/biome": "^1.9.4",
|
|
10
|
-
"@types/bun": "^1.2.
|
|
10
|
+
"@types/bun": "^1.2.13",
|
|
11
|
+
"@types/node": "^22.15.19",
|
|
11
12
|
"typescript": "^5.8.3"
|
|
12
13
|
},
|
|
13
14
|
"exports": {
|