@embeddable.com/sdk-core 3.9.13 → 3.10.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/bin/embeddable +8 -5
- package/bin/package.json +3 -0
- package/lib/index.esm.js +15 -24
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +15 -24
- package/lib/index.js.map +1 -1
- package/loader/entryPoint.js +75 -0
- package/loader/entryPoint.test.js +122 -0
- package/loader/package.json +3 -0
- package/package.json +14 -14
- package/src/build.test.ts +0 -1
- package/src/generate.ts +1 -10
- package/src/rollbar.test.ts +0 -1
- package/src/entryPoint.js +0 -12
package/bin/embeddable
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import { pathToFileURL } from "url";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import { spawn } from "child_process";
|
|
7
|
+
import path from "path";
|
|
8
8
|
|
|
9
9
|
// Check if the loader is already applied to avoid infinite spawning
|
|
10
10
|
if (!process.env.LOADER_APPLIED) {
|
|
@@ -13,9 +13,12 @@ if (!process.env.LOADER_APPLIED) {
|
|
|
13
13
|
LOADER_APPLIED: "1",
|
|
14
14
|
VITE_CJS_IGNORE_WARNING: "true", // see https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
const dirname = path.dirname(new URL(import.meta.url).pathname);
|
|
18
|
+
|
|
19
|
+
const entryPointPath = path.join(dirname, "../loader/entryPoint.js");
|
|
17
20
|
const customLoaderPath = path.join(
|
|
18
|
-
|
|
21
|
+
dirname,
|
|
19
22
|
"../loader/custom-esm-loader.mjs",
|
|
20
23
|
);
|
|
21
24
|
|
package/bin/package.json
ADDED
package/lib/index.esm.js
CHANGED
|
@@ -511,16 +511,7 @@ async function runStencil(ctx) {
|
|
|
511
511
|
});
|
|
512
512
|
const compiler = await createCompiler(validated.config);
|
|
513
513
|
const buildResults = await compiler.build();
|
|
514
|
-
if (devMode) {
|
|
515
|
-
// Handle process exit to clean up resources
|
|
516
|
-
const cleanUp = async () => {
|
|
517
|
-
await compiler.destroy();
|
|
518
|
-
process.exit(0);
|
|
519
|
-
};
|
|
520
|
-
process.on("SIGINT", cleanUp);
|
|
521
|
-
process.on("SIGTERM", cleanUp);
|
|
522
|
-
}
|
|
523
|
-
else {
|
|
514
|
+
if (!devMode) {
|
|
524
515
|
if (buildResults.hasError) {
|
|
525
516
|
console.error("Stencil build error:", buildResults.diagnostics);
|
|
526
517
|
throw new Error("Stencil build error");
|
|
@@ -22002,7 +21993,7 @@ var defineConfig = ({ plugins, pushBaseUrl, audienceUrl, authDomain, authClientI
|
|
|
22002
21993
|
};
|
|
22003
21994
|
|
|
22004
21995
|
var name = "@embeddable.com/sdk-core";
|
|
22005
|
-
var version = "3.
|
|
21996
|
+
var version = "3.10.0";
|
|
22006
21997
|
var description = "Core Embeddable SDK module responsible for web-components bundling and publishing.";
|
|
22007
21998
|
var keywords = [
|
|
22008
21999
|
"embeddable",
|
|
@@ -22041,26 +22032,26 @@ var engines = {
|
|
|
22041
22032
|
var license = "MIT";
|
|
22042
22033
|
var dependencies = {
|
|
22043
22034
|
"@embeddable.com/sdk-utils": "*",
|
|
22044
|
-
"@inquirer/prompts": "^7.
|
|
22045
|
-
"@stencil/core": "^4.22.
|
|
22035
|
+
"@inquirer/prompts": "^7.1.0",
|
|
22036
|
+
"@stencil/core": "^4.22.2",
|
|
22046
22037
|
"@swc-node/register": "^1.10.9",
|
|
22047
|
-
archiver: "^5.3.
|
|
22048
|
-
axios: "^1.7.
|
|
22049
|
-
chokidar: "^
|
|
22050
|
-
finalhandler: "^1.
|
|
22038
|
+
archiver: "^5.3.2",
|
|
22039
|
+
axios: "^1.7.7",
|
|
22040
|
+
chokidar: "^4.0.1",
|
|
22041
|
+
finalhandler: "^1.3.1",
|
|
22051
22042
|
"formdata-node": "^6.0.3",
|
|
22052
22043
|
minimist: "^1.2.8",
|
|
22053
22044
|
open: "^9.1.0",
|
|
22054
|
-
ora: "^8.
|
|
22055
|
-
"serve-static": "^1.
|
|
22056
|
-
sorcery: "^0.11.
|
|
22057
|
-
vite: "^5.4.
|
|
22058
|
-
ws: "^8.
|
|
22059
|
-
yaml: "^2.
|
|
22045
|
+
ora: "^8.1.1",
|
|
22046
|
+
"serve-static": "^1.16.2",
|
|
22047
|
+
sorcery: "^0.11.1",
|
|
22048
|
+
vite: "^5.4.11",
|
|
22049
|
+
ws: "^8.18.0",
|
|
22050
|
+
yaml: "^2.6.0"
|
|
22060
22051
|
};
|
|
22061
22052
|
var devDependencies = {
|
|
22062
22053
|
"@types/archiver": "^5.3.4",
|
|
22063
|
-
"@types/ws": "^8.5.
|
|
22054
|
+
"@types/ws": "^8.5.13"
|
|
22064
22055
|
};
|
|
22065
22056
|
var _package = {
|
|
22066
22057
|
name: name,
|