@embeddable.com/sdk-core 3.1.3 → 3.1.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/bin/embeddable +15 -3
- package/configs/tsconfig.json +4 -11
- package/lib/index.esm.js +6 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +7 -1
- package/lib/index.js.map +1 -1
- package/loader/custom-esm-loader.mjs +33 -5
- package/package.json +1 -1
- package/src/entryPoint.js +12 -0
- package/src/generate.ts +3 -0
- package/src/login.ts +1 -3
- package/src/provideConfig.ts +4 -1
- package/lib/entryPoint.d.ts +0 -1
- package/src/entryPoint.ts +0 -16
package/lib/index.js
CHANGED
|
@@ -8,6 +8,7 @@ var fs$2 = require('node:fs');
|
|
|
8
8
|
var node = require('@stencil/core/sys/node');
|
|
9
9
|
var compiler = require('@stencil/core/compiler');
|
|
10
10
|
var YAML = require('yaml');
|
|
11
|
+
var url$2 = require('node:url');
|
|
11
12
|
var path$2 = require('path');
|
|
12
13
|
var require$$4$1 = require('util');
|
|
13
14
|
var require$$1 = require('os');
|
|
@@ -44,6 +45,7 @@ var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path$1);
|
|
|
44
45
|
var vite__namespace = /*#__PURE__*/_interopNamespaceDefault(vite);
|
|
45
46
|
var fs__namespace$1 = /*#__PURE__*/_interopNamespaceDefault(fs$2);
|
|
46
47
|
var YAML__namespace = /*#__PURE__*/_interopNamespaceDefault(YAML);
|
|
48
|
+
var url__namespace = /*#__PURE__*/_interopNamespaceDefault(url$2);
|
|
47
49
|
var path__namespace$1 = /*#__PURE__*/_interopNamespaceDefault(path$2);
|
|
48
50
|
var os__namespace = /*#__PURE__*/_interopNamespaceDefault(os$1);
|
|
49
51
|
var archiver__namespace = /*#__PURE__*/_interopNamespaceDefault(archiver);
|
|
@@ -446,12 +448,14 @@ async function runStencil(ctx) {
|
|
|
446
448
|
const logger = ((_a = ctx.dev) === null || _a === void 0 ? void 0 : _a.logger) || node.createNodeLogger({ process });
|
|
447
449
|
const sys = ((_b = ctx.dev) === null || _b === void 0 ? void 0 : _b.sys) || node.createNodeSys({ process });
|
|
448
450
|
const devMode = !!ctx.dev;
|
|
451
|
+
const isWindows = process.platform === "win32";
|
|
449
452
|
const validated = await compiler.loadConfig({
|
|
450
453
|
initTsConfig: true,
|
|
451
454
|
logger,
|
|
452
455
|
sys,
|
|
453
456
|
config: {
|
|
454
457
|
devMode,
|
|
458
|
+
maxConcurrentWorkers: isWindows ? 0 : 8, // workers break on windows
|
|
455
459
|
rootDir: ctx.client.buildDir,
|
|
456
460
|
configPath: path__namespace.resolve(ctx.client.buildDir, "stencil.config.ts"),
|
|
457
461
|
tsconfig: path__namespace.resolve(ctx.client.buildDir, "tsconfig.json"),
|
|
@@ -4656,10 +4660,12 @@ var provideConfig = async () => {
|
|
|
4656
4660
|
console.log("Please create a proper `embeddable.config.js` or `embeddable.config.ts` file in the root of your project.");
|
|
4657
4661
|
process.exit(1);
|
|
4658
4662
|
}
|
|
4663
|
+
const isWindows = process.platform === "win32";
|
|
4659
4664
|
const configPath = fs__namespace$1.existsSync(tsConfigFilePath)
|
|
4660
4665
|
? tsConfigFilePath
|
|
4661
4666
|
: configFilePath;
|
|
4662
|
-
|
|
4667
|
+
const pathOrUrl = isWindows ? url__namespace.pathToFileURL(configPath).href : configPath;
|
|
4668
|
+
return (await import(pathOrUrl)).default;
|
|
4663
4669
|
};
|
|
4664
4670
|
|
|
4665
4671
|
function getDefaultExportFromCjs (x) {
|