@cubing/dev-config 0.3.3 → 0.3.4
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/README.md +1 -1
- package/esbuild/es2022/index.js +2 -21
- package/esbuild/es2022/index.js.map +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/esbuild/es2022/index.js
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
format: "esm",
|
|
4
|
-
target: "es2022",
|
|
5
|
-
bundle: true,
|
|
6
|
-
splitting: true,
|
|
7
|
-
chunkNames: "chunks/[name]-[hash]",
|
|
8
|
-
sourcemap: true
|
|
9
|
-
};
|
|
10
|
-
export function es2022App(options) {
|
|
11
|
-
return {
|
|
12
|
-
...common,
|
|
13
|
-
minify: !options?.dev
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export function es2022Lib() {
|
|
17
|
-
return {
|
|
18
|
-
...es2022App,
|
|
19
|
-
packages: "external"
|
|
20
|
-
};
|
|
21
|
-
}
|
|
1
|
+
var t={format:"esm",target:"es2022",bundle:!0,splitting:!0,chunkNames:"chunks/[name]-[hash]",sourcemap:!0};function n(e){return{...t,minify:!e?.dev}}function s(){return{...n(),packages:"external"}}export{n as es2022App,s as es2022Lib};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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,IAAMA,EAAS,CACb,OAAQ,MACR,OAAQ,SAER,OAAQ,GACR,UAAW,GAEX,WAAY,uBACZ,UAAW,EACb,EAEO,SAASC,EAAUC,EAA2C,CACnE,MAAO,CACL,GAAGF,EACH,OAAQ,CAACE,GAAS,GACpB,CACF,CAEO,SAASC,GAA0B,CACxC,MAAO,CACL,GAAGF,EAAU,EACb,SAAU,UACZ,CACF",
|
|
6
|
+
"names": ["common", "es2022App", "options", "es2022Lib"]
|
|
7
|
+
}
|