@embeddable.com/sdk-core 3.9.0-next.0 → 3.9.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/lib/index.esm.js +1 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/loader/custom-esm-loader.mjs +0 -18
- package/package.json +1 -1
- package/src/generate.test.ts +0 -1
- package/src/generate.ts +0 -1
|
@@ -59,8 +59,6 @@ const currentDir = dirname(fileURLToPath(import.meta.url));
|
|
|
59
59
|
|
|
60
60
|
const isWindows = process.platform === "win32";
|
|
61
61
|
|
|
62
|
-
const moduleCache = new Map();
|
|
63
|
-
|
|
64
62
|
export const resolve = async (specifier, context, nextResolve) => {
|
|
65
63
|
if (NON_JS_TS_EXTENSIONS.test(specifier)) {
|
|
66
64
|
const mockModulePath = pathToFileURL(
|
|
@@ -74,10 +72,6 @@ export const resolve = async (specifier, context, nextResolve) => {
|
|
|
74
72
|
};
|
|
75
73
|
}
|
|
76
74
|
|
|
77
|
-
if (moduleCache.has(specifier)) {
|
|
78
|
-
return moduleCache.get(specifier);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
75
|
const isTS = EXTENSIONS.some((ext) => specifier.endsWith(ext));
|
|
82
76
|
|
|
83
77
|
// Entry point
|
|
@@ -94,8 +88,6 @@ export const resolve = async (specifier, context, nextResolve) => {
|
|
|
94
88
|
shortCircuit: true,
|
|
95
89
|
};
|
|
96
90
|
|
|
97
|
-
moduleCache.set(specifier, resolved);
|
|
98
|
-
|
|
99
91
|
return resolved;
|
|
100
92
|
}
|
|
101
93
|
|
|
@@ -139,8 +131,6 @@ export const resolve = async (specifier, context, nextResolve) => {
|
|
|
139
131
|
shortCircuit: true,
|
|
140
132
|
};
|
|
141
133
|
|
|
142
|
-
moduleCache.set(specifier, resolved);
|
|
143
|
-
|
|
144
134
|
return resolved;
|
|
145
135
|
}
|
|
146
136
|
|
|
@@ -153,13 +143,7 @@ export const resolve = async (specifier, context, nextResolve) => {
|
|
|
153
143
|
return nextResolve(specifierPathOrUrl);
|
|
154
144
|
};
|
|
155
145
|
|
|
156
|
-
const compiledModuleCache = new Map();
|
|
157
|
-
|
|
158
146
|
export const load = async (url, context, nextLoad) => {
|
|
159
|
-
if (compiledModuleCache.has(url)) {
|
|
160
|
-
return compiledModuleCache.get(url);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
147
|
if (context.format === "ts") {
|
|
164
148
|
const { source } = await nextLoad(url, context);
|
|
165
149
|
const code =
|
|
@@ -173,8 +157,6 @@ export const load = async (url, context, nextLoad) => {
|
|
|
173
157
|
shortCircuit: true,
|
|
174
158
|
};
|
|
175
159
|
|
|
176
|
-
compiledModuleCache.set(url, resolved);
|
|
177
|
-
|
|
178
160
|
return resolved;
|
|
179
161
|
} else {
|
|
180
162
|
if (
|
package/package.json
CHANGED
package/src/generate.test.ts
CHANGED
package/src/generate.ts
CHANGED
|
@@ -109,7 +109,6 @@ async function runStencil(ctx: any): Promise<void> {
|
|
|
109
109
|
sys,
|
|
110
110
|
config: {
|
|
111
111
|
devMode,
|
|
112
|
-
enableCache: true,
|
|
113
112
|
maxConcurrentWorkers: isWindows ? 0 : 8, // workers break on windows
|
|
114
113
|
rootDir: ctx.client.buildDir,
|
|
115
114
|
configPath: path.resolve(ctx.client.buildDir, "stencil.config.ts"),
|