@simplysm/sd-cli 12.16.36 → 12.16.37
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.
|
@@ -247,6 +247,7 @@ export class SdNgBundler {
|
|
|
247
247
|
const indexHtmlGenerator = new IndexHtmlGenerator({
|
|
248
248
|
indexPath: this._indexHtmlFilePath,
|
|
249
249
|
entrypoints: [
|
|
250
|
+
["sd-polyfills", true],
|
|
250
251
|
["polyfills", true],
|
|
251
252
|
["styles", false],
|
|
252
253
|
["main", true],
|
|
@@ -369,6 +370,7 @@ export class SdNgBundler {
|
|
|
369
370
|
mainFields: ["es2020", "es2015", "browser", "module", "main"],
|
|
370
371
|
entryNames: "[dir]/[name]",
|
|
371
372
|
entryPoints: {
|
|
373
|
+
"sd-polyfills": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../../../lib/chrome61-polyfills.js"),
|
|
372
374
|
main: this._mainFilePath,
|
|
373
375
|
...(FsUtils.exists(path.resolve(this._opt.pkgPath, "src/polyfills.ts"))
|
|
374
376
|
? {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// =============================================================
|
|
2
|
+
// Chrome 61+ Polyfills
|
|
3
|
+
// core-js는 feature detection 기반 — 이미 지원하는 기능은 skip
|
|
4
|
+
// sd-cli가 Angular 클라이언트 빌드 시 자동 주입
|
|
5
|
+
// =============================================================
|
|
6
|
+
|
|
7
|
+
// -- ES2018 --
|
|
8
|
+
import "core-js/actual/promise/finally";
|
|
9
|
+
|
|
10
|
+
// -- ES2019 --
|
|
11
|
+
import "core-js/actual/array/flat";
|
|
12
|
+
import "core-js/actual/array/flat-map";
|
|
13
|
+
import "core-js/actual/object/from-entries";
|
|
14
|
+
import "core-js/actual/string/trim-start";
|
|
15
|
+
import "core-js/actual/string/trim-end";
|
|
16
|
+
|
|
17
|
+
// -- ES2020 --
|
|
18
|
+
import "core-js/actual/global-this";
|
|
19
|
+
import "core-js/actual/string/match-all";
|
|
20
|
+
import "core-js/actual/promise/all-settled";
|
|
21
|
+
|
|
22
|
+
// -- ES2021 --
|
|
23
|
+
import "core-js/actual/promise/any";
|
|
24
|
+
import "core-js/actual/aggregate-error";
|
|
25
|
+
import "core-js/actual/string/replace-all";
|
|
26
|
+
import "core-js/actual/weak-ref";
|
|
27
|
+
import "core-js/actual/finalization-registry";
|
|
28
|
+
|
|
29
|
+
// -- ES2022 --
|
|
30
|
+
import "core-js/actual/array/at";
|
|
31
|
+
import "core-js/actual/string/at";
|
|
32
|
+
import "core-js/actual/object/has-own";
|
|
33
|
+
import "core-js/actual/error/cause";
|
|
34
|
+
|
|
35
|
+
// -- Web APIs --
|
|
36
|
+
import "core-js/actual/queue-microtask";
|
|
37
|
+
import "core-js/actual/structured-clone";
|
|
38
|
+
|
|
39
|
+
// -- AbortController (Chrome 66+) --
|
|
40
|
+
import "abortcontroller-polyfill/dist/abortcontroller-polyfill-only";
|
|
41
|
+
|
|
42
|
+
// -- ResizeObserver (Chrome 64+) --
|
|
43
|
+
import ResizeObserver from "resize-observer-polyfill";
|
|
44
|
+
if (typeof window !== "undefined" && !("ResizeObserver" in window)) {
|
|
45
|
+
window.ResizeObserver = ResizeObserver;
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/sd-cli",
|
|
3
|
-
"version": "12.16.
|
|
3
|
+
"version": "12.16.37",
|
|
4
4
|
"description": "심플리즘 패키지 - CLI",
|
|
5
5
|
"author": "김석래",
|
|
6
6
|
"repository": {
|
|
@@ -17,12 +17,14 @@
|
|
|
17
17
|
"@angular/compiler-cli": "^20.3.18",
|
|
18
18
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
19
19
|
"@electron/rebuild": "^4.0.3",
|
|
20
|
-
"@simplysm/sd-core-common": "12.16.
|
|
21
|
-
"@simplysm/sd-core-node": "12.16.
|
|
22
|
-
"@simplysm/sd-service-server": "12.16.
|
|
23
|
-
"@simplysm/sd-storage": "12.16.
|
|
20
|
+
"@simplysm/sd-core-common": "12.16.37",
|
|
21
|
+
"@simplysm/sd-core-node": "12.16.37",
|
|
22
|
+
"@simplysm/sd-service-server": "12.16.37",
|
|
23
|
+
"@simplysm/sd-storage": "12.16.37",
|
|
24
|
+
"abortcontroller-polyfill": "^1.7.8",
|
|
24
25
|
"browserslist": "^4.28.1",
|
|
25
26
|
"cordova": "^13.0.0",
|
|
27
|
+
"core-js": "^3.49.0",
|
|
26
28
|
"electron": "^33.4.11",
|
|
27
29
|
"electron-builder": "^25.1.8",
|
|
28
30
|
"esbuild": "0.25.9",
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
"eslint": "^9.39.4",
|
|
31
33
|
"glob": "^13.0.6",
|
|
32
34
|
"node-stdlib-browser": "^1.3.1",
|
|
35
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
33
36
|
"rxjs": "^7.8.2",
|
|
34
37
|
"sass-embedded": "^1.98.0",
|
|
35
38
|
"semver": "^7.7.4",
|
|
@@ -326,6 +326,7 @@ export class SdNgBundler {
|
|
|
326
326
|
const indexHtmlGenerator = new IndexHtmlGenerator({
|
|
327
327
|
indexPath: this._indexHtmlFilePath,
|
|
328
328
|
entrypoints: [
|
|
329
|
+
["sd-polyfills", true],
|
|
329
330
|
["polyfills", true],
|
|
330
331
|
["styles", false],
|
|
331
332
|
["main", true],
|
|
@@ -487,6 +488,10 @@ export class SdNgBundler {
|
|
|
487
488
|
mainFields: ["es2020", "es2015", "browser", "module", "main"],
|
|
488
489
|
entryNames: "[dir]/[name]",
|
|
489
490
|
entryPoints: {
|
|
491
|
+
"sd-polyfills": path.resolve(
|
|
492
|
+
path.dirname(fileURLToPath(import.meta.url)),
|
|
493
|
+
"../../../lib/chrome61-polyfills.js",
|
|
494
|
+
),
|
|
490
495
|
main: this._mainFilePath,
|
|
491
496
|
...(FsUtils.exists(path.resolve(this._opt.pkgPath, "src/polyfills.ts"))
|
|
492
497
|
? {
|