@knapsack/renderer-webpack-base 4.69.13--canary.4860.ba46b2a.0 → 4.69.13--canary.4821.ae550c0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.mts.map +1 -1
- package/dist/client/renderer-webpack-client.d.mts +12 -72
- package/dist/client/renderer-webpack-client.d.mts.map +1 -1
- package/dist/client/renderer-webpack-client.mjs +92 -118
- package/dist/client/renderer-webpack-client.mjs.map +1 -1
- package/dist/create-js-import-entry.d.ts +1 -2
- package/dist/create-js-import-entry.d.ts.map +1 -1
- package/dist/create-js-import-entry.js +2 -8
- package/dist/create-js-import-entry.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/renderer-webpack-base.d.ts +23 -58
- package/dist/renderer-webpack-base.d.ts.map +1 -1
- package/dist/renderer-webpack-base.js +159 -226
- package/dist/renderer-webpack-base.js.map +1 -1
- package/dist/types.d.ts +45 -21
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +3 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +8 -0
- package/dist/utils.js.map +1 -0
- package/package.json +11 -11
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
13
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
15
|
};
|
16
|
-
var _RendererWebpackBase_webpackAssetsPaths, _RendererWebpackBase_webpackAssetsPathsFilePath, _RendererWebpackBase_entryString;
|
16
|
+
var _RendererWebpackBase_instances, _RendererWebpackBase_webpackAssetsPaths, _RendererWebpackBase_webpackAssetsPathsFilePath, _RendererWebpackBase_entryString, _RendererWebpackBase_writeKsEntryFile, _RendererWebpackBase_prepWebpack;
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
18
18
|
exports.RendererWebpackBase = void 0;
|
19
19
|
const app_1 = require("@knapsack/app");
|
@@ -46,18 +46,69 @@ function normalizeAliases(aliases) {
|
|
46
46
|
}));
|
47
47
|
}
|
48
48
|
class RendererWebpackBase extends renderers_1.RendererBase {
|
49
|
-
constructor({ id,
|
49
|
+
constructor({ id, language, webpackConfig = {}, extraScripts = [], codeSrcs, }) {
|
50
50
|
super({
|
51
51
|
id,
|
52
|
-
extension,
|
53
52
|
language,
|
53
|
+
codeSrcs,
|
54
54
|
});
|
55
|
+
_RendererWebpackBase_instances.add(this);
|
55
56
|
_RendererWebpackBase_webpackAssetsPaths.set(this, void 0);
|
56
57
|
_RendererWebpackBase_webpackAssetsPathsFilePath.set(this, void 0);
|
57
58
|
/** Last written value of `getEntryString` - used for preventing file writes */
|
58
59
|
_RendererWebpackBase_entryString.set(this, void 0);
|
60
|
+
this.setConfig = (opt) => {
|
61
|
+
super.setConfig(opt);
|
62
|
+
this.publicPath = `/${(0, path_1.relative)(this.cacheDir, this.outputDir)}/`;
|
63
|
+
__classPrivateFieldSet(this, _RendererWebpackBase_webpackAssetsPathsFilePath, (0, path_1.join)(this.outputDir, 'webpack-asset-paths.json'), "f");
|
64
|
+
this.entryFilePath = (0, path_1.join)(this.outputDir, 'ks-pattern-import-global-setup.js');
|
65
|
+
};
|
66
|
+
this.hydrate = async () => {
|
67
|
+
try {
|
68
|
+
__classPrivateFieldSet(this, _RendererWebpackBase_webpackAssetsPaths, await (0, file_utils_1.readJSON)(__classPrivateFieldGet(this, _RendererWebpackBase_webpackAssetsPathsFilePath, "f")), "f");
|
69
|
+
}
|
70
|
+
catch (e) {
|
71
|
+
throw new Error(`It looks like 'knapsack build' was not ran before 'knapsack serve' - not able to find ${__classPrivateFieldGet(this, _RendererWebpackBase_webpackAssetsPathsFilePath, "f")}`);
|
72
|
+
}
|
73
|
+
};
|
74
|
+
this.build = async () => {
|
75
|
+
app_1.log.info('Building with Webpack...', null, this.logPrefix);
|
76
|
+
return new Promise((resolve, reject) => {
|
77
|
+
__classPrivateFieldGet(this, _RendererWebpackBase_instances, "m", _RendererWebpackBase_prepWebpack).call(this);
|
78
|
+
this.webpackCompiler.run(async (err, stats) => {
|
79
|
+
if (err) {
|
80
|
+
console.log();
|
81
|
+
console.error(err);
|
82
|
+
console.log();
|
83
|
+
app_1.log.error(`An error occured while building your components with Webpack. Please review above messages`, null, this.logPrefix);
|
84
|
+
reject();
|
85
|
+
return;
|
86
|
+
}
|
87
|
+
if (stats?.hasErrors?.()) {
|
88
|
+
console.log();
|
89
|
+
console.error(stats.toString());
|
90
|
+
console.log();
|
91
|
+
app_1.log.error(`An error occured while building your components with Webpack. Please review above messages`, null, this.logPrefix);
|
92
|
+
reject();
|
93
|
+
return;
|
94
|
+
}
|
95
|
+
/**
|
96
|
+
* Writing out this info to a file so that the `hydrate` step can read it and get it back in-memory
|
97
|
+
*/
|
98
|
+
await (0, file_utils_1.writeJSON)({
|
99
|
+
path: __classPrivateFieldGet(this, _RendererWebpackBase_webpackAssetsPathsFilePath, "f"),
|
100
|
+
contents: __classPrivateFieldGet(this, _RendererWebpackBase_webpackAssetsPaths, "f"),
|
101
|
+
});
|
102
|
+
app_1.log.info('Webpack built', null, this.logPrefix);
|
103
|
+
resolve();
|
104
|
+
});
|
105
|
+
});
|
106
|
+
};
|
59
107
|
this.getUsage = async (opt) => {
|
60
|
-
const { usage } = await this.getUsageAndImports(
|
108
|
+
const { usage } = await this.getUsageAndImports({
|
109
|
+
...opt,
|
110
|
+
importMap: new Map(),
|
111
|
+
});
|
61
112
|
return usage;
|
62
113
|
};
|
63
114
|
this.webpack = webpack_1.default;
|
@@ -73,141 +124,76 @@ class RendererWebpackBase extends renderers_1.RendererBase {
|
|
73
124
|
this.extraScripts = extraScripts;
|
74
125
|
__classPrivateFieldSet(this, _RendererWebpackBase_entryString, '', "f");
|
75
126
|
}
|
76
|
-
async
|
77
|
-
await
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
async hydrate(opt) {
|
84
|
-
await super.hydrate(opt);
|
85
|
-
try {
|
86
|
-
__classPrivateFieldSet(this, _RendererWebpackBase_webpackAssetsPaths, await (0, file_utils_1.readJSON)(__classPrivateFieldGet(this, _RendererWebpackBase_webpackAssetsPathsFilePath, "f")), "f");
|
127
|
+
async addUniqueValueToImportMap({ importMap, path: originalPath, alias, }) {
|
128
|
+
const { type, absolutePath } = await this.resolvePath(originalPath);
|
129
|
+
const path = type === 'package' ? originalPath : absolutePath;
|
130
|
+
const isDefaultExport = !alias || alias === 'default';
|
131
|
+
let preChangedName = alias;
|
132
|
+
if (isDefaultExport) {
|
133
|
+
preChangedName = (0, path_1.parse)(path).name;
|
87
134
|
}
|
88
|
-
|
89
|
-
|
135
|
+
let name = this.changeCase(preChangedName);
|
136
|
+
const prior = importMap.get(name);
|
137
|
+
if (prior && prior.path === path) {
|
138
|
+
switch (prior.type) {
|
139
|
+
case 'default': {
|
140
|
+
if (isDefaultExport)
|
141
|
+
return prior;
|
142
|
+
break;
|
143
|
+
}
|
144
|
+
case 'named': {
|
145
|
+
if (prior.name === name)
|
146
|
+
return prior;
|
147
|
+
break;
|
148
|
+
}
|
149
|
+
case 'renamed': {
|
150
|
+
if (prior.originalName === alias)
|
151
|
+
return prior;
|
152
|
+
break;
|
153
|
+
}
|
154
|
+
default: {
|
155
|
+
throw new Error(`Unknown import type: ${JSON.stringify(prior)}`);
|
156
|
+
}
|
157
|
+
}
|
90
158
|
}
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
...allTemplates.map(({ patternId, templateId, alias, path }) => {
|
100
|
-
const { type, absolutePath, originalPath } = this.patterns.getTemplatePath({
|
101
|
-
patternId,
|
102
|
-
templateId,
|
103
|
-
});
|
104
|
-
const hasSingleTemplate = allTemplates.filter((t) => t.patternId === patternId).length === 1;
|
105
|
-
const importPath = type === 'package' ? originalPath : absolutePath;
|
106
|
-
return {
|
107
|
-
type: 'pattern-template',
|
108
|
-
patternId,
|
109
|
-
templateId,
|
110
|
-
importInfo: alias
|
111
|
-
? {
|
112
|
-
type: 'named',
|
113
|
-
name: alias,
|
114
|
-
path: importPath,
|
115
|
-
}
|
116
|
-
: {
|
117
|
-
type: 'default',
|
118
|
-
path: importPath,
|
119
|
-
name: this.changeCase(hasSingleTemplate
|
120
|
-
? patternId
|
121
|
-
: `${patternId}-${templateId}`),
|
122
|
-
},
|
123
|
-
};
|
124
|
-
}),
|
125
|
-
...allTemplateDemos.map(({ patternId, templateId, demoId, alias, path }) => {
|
126
|
-
const { type, absolutePath, originalPath } = this.patterns.getTemplatePath({
|
127
|
-
patternId,
|
128
|
-
templateId,
|
129
|
-
demoId,
|
159
|
+
const isUniqueName = !importMap.has(name);
|
160
|
+
if (isUniqueName) {
|
161
|
+
if (isDefaultExport) {
|
162
|
+
// unique & default import
|
163
|
+
importMap.set(name, {
|
164
|
+
type: 'default',
|
165
|
+
name,
|
166
|
+
path,
|
130
167
|
});
|
131
|
-
|
132
|
-
return {
|
133
|
-
type: 'pattern-template-demo',
|
134
|
-
patternId,
|
135
|
-
templateId,
|
136
|
-
demoId,
|
137
|
-
importInfo: alias
|
138
|
-
? {
|
139
|
-
type: 'named',
|
140
|
-
name: alias,
|
141
|
-
path: importPath,
|
142
|
-
}
|
143
|
-
: {
|
144
|
-
type: 'default',
|
145
|
-
path: importPath,
|
146
|
-
name: this.changeCase(`${patternId}-${templateId}-${demoId}`),
|
147
|
-
},
|
148
|
-
};
|
149
|
-
}),
|
150
|
-
];
|
151
|
-
}
|
152
|
-
/**
|
153
|
-
* @see {getJsImports} for all
|
154
|
-
* @see {getJsImportExtra} for type "extra"
|
155
|
-
*/
|
156
|
-
getJsImport({ patternId, templateId, demoId, }) {
|
157
|
-
const result = this.getJsImports()
|
158
|
-
.filter((imp) => {
|
159
|
-
return demoId
|
160
|
-
? imp.type === 'pattern-template-demo'
|
161
|
-
: imp.type === 'pattern-template';
|
162
|
-
})
|
163
|
-
.find((imp) => {
|
164
|
-
switch (imp.type) {
|
165
|
-
case 'extra':
|
166
|
-
return false;
|
167
|
-
case 'pattern-template':
|
168
|
-
return imp.patternId === patternId && imp.templateId === templateId;
|
169
|
-
case 'pattern-template-demo':
|
170
|
-
return (imp.patternId === patternId &&
|
171
|
-
imp.templateId === templateId &&
|
172
|
-
imp.demoId === demoId);
|
173
|
-
default:
|
174
|
-
return (0, utils_1.expectNever)(imp);
|
168
|
+
return importMap.get(name);
|
175
169
|
}
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
* @see {getJsImports} for all
|
184
|
-
* @see {getJsImport} for types "pattern-template" and "pattern-template-demo"
|
185
|
-
*/
|
186
|
-
getJsImportExtra({ name, }) {
|
187
|
-
const result = this.getJsImports().find((imp) => {
|
188
|
-
if (imp.type !== 'extra')
|
189
|
-
return false;
|
190
|
-
return imp.importInfo.name === name;
|
191
|
-
});
|
192
|
-
if (result.type !== 'extra') {
|
193
|
-
throw new Error('getJsImportExtra: type "extra" expected');
|
170
|
+
// unique & named import
|
171
|
+
importMap.set(name, {
|
172
|
+
type: 'named',
|
173
|
+
name,
|
174
|
+
path,
|
175
|
+
});
|
176
|
+
return importMap.get(name);
|
194
177
|
}
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
178
|
+
// name is not unique so let's make it unique
|
179
|
+
name = this.changeCase(`${name} ${(0, utils_1.makeShortId)()}`);
|
180
|
+
if (isDefaultExport) {
|
181
|
+
// not unique & default import
|
182
|
+
importMap.set(name, {
|
183
|
+
type: 'default',
|
184
|
+
name, // ok since `name` has been made unique
|
185
|
+
path,
|
186
|
+
});
|
187
|
+
return importMap.get(name);
|
200
188
|
}
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
contents,
|
208
|
-
path: this.entryFilePath,
|
189
|
+
// non-unique named import, so we do `import { originalName as name } from path`
|
190
|
+
importMap.set(name, {
|
191
|
+
type: 'renamed',
|
192
|
+
name,
|
193
|
+
path,
|
194
|
+
originalName: alias,
|
209
195
|
});
|
210
|
-
|
196
|
+
return importMap.get(name);
|
211
197
|
}
|
212
198
|
get webpackVersion() {
|
213
199
|
const majorVersion = parseInt(this.webpack.version.split('.')[0], 10);
|
@@ -301,20 +287,13 @@ class RendererWebpackBase extends renderers_1.RendererBase {
|
|
301
287
|
};
|
302
288
|
return newWebpackConfig;
|
303
289
|
}
|
304
|
-
prepWebpack() {
|
305
|
-
this.writeKsEntryFile();
|
306
|
-
const webpackConfig = this.createWebpackConfig();
|
307
|
-
app_1.log.verbose(`Webpack Config module.rules`, webpackConfig.module.rules, this.logPrefix);
|
308
|
-
// should this look for an already running webpack instance to possibly shut it down first? would only be from watch
|
309
|
-
this.webpackCompiler = this.webpack(webpackConfig);
|
310
|
-
}
|
311
290
|
/**
|
312
291
|
* Every asset file path needed in `<script>` tags
|
313
292
|
*/
|
314
293
|
getWebpackAssetPaths() {
|
315
294
|
return __classPrivateFieldGet(this, _RendererWebpackBase_webpackAssetsPaths, "f")?.[wpEntryMainId] || [];
|
316
295
|
}
|
317
|
-
createHtmlTagsForAssetPaths({ assets, scriptTagsAreAsync, }) {
|
296
|
+
static createHtmlTagsForAssetPaths({ assets, scriptTagsAreAsync, }) {
|
318
297
|
return assets
|
319
298
|
.filter((asset) => !asset.endsWith('.map')) // exclude source maps
|
320
299
|
.map((asset) => {
|
@@ -330,39 +309,6 @@ class RendererWebpackBase extends renderers_1.RendererBase {
|
|
330
309
|
})
|
331
310
|
.join('\n');
|
332
311
|
}
|
333
|
-
build() {
|
334
|
-
app_1.log.info('Building with Webpack...', null, this.logPrefix);
|
335
|
-
return new Promise((resolve, reject) => {
|
336
|
-
this.prepWebpack();
|
337
|
-
this.webpackCompiler.run(async (err, stats) => {
|
338
|
-
if (err) {
|
339
|
-
console.log();
|
340
|
-
console.error(err);
|
341
|
-
console.log();
|
342
|
-
app_1.log.error(`An error occured while building your components with Webpack. Please review above messages`, null, this.logPrefix);
|
343
|
-
reject();
|
344
|
-
return;
|
345
|
-
}
|
346
|
-
if (stats?.hasErrors?.()) {
|
347
|
-
console.log();
|
348
|
-
console.error(stats.toString());
|
349
|
-
console.log();
|
350
|
-
app_1.log.error(`An error occured while building your components with Webpack. Please review above messages`, null, this.logPrefix);
|
351
|
-
reject();
|
352
|
-
return;
|
353
|
-
}
|
354
|
-
/**
|
355
|
-
* Writing out this info to a file so that the `hydrate` step can read it and get it back in-memory
|
356
|
-
*/
|
357
|
-
await (0, file_utils_1.writeJSON)({
|
358
|
-
path: __classPrivateFieldGet(this, _RendererWebpackBase_webpackAssetsPathsFilePath, "f"),
|
359
|
-
contents: __classPrivateFieldGet(this, _RendererWebpackBase_webpackAssetsPaths, "f"),
|
360
|
-
});
|
361
|
-
app_1.log.info('Webpack built', null, this.logPrefix);
|
362
|
-
resolve();
|
363
|
-
});
|
364
|
-
});
|
365
|
-
}
|
366
312
|
/** Starts a webpack watch, returns an object with a `.close()` method for shutting down */
|
367
313
|
startWebpackWatch() {
|
368
314
|
if (!this.webpackCompiler) {
|
@@ -395,47 +341,20 @@ class RendererWebpackBase extends renderers_1.RendererBase {
|
|
395
341
|
}, 0);
|
396
342
|
});
|
397
343
|
}
|
398
|
-
async watch(
|
344
|
+
async watch() {
|
399
345
|
// we don't call `await super.watch(opt);` b/c webpack is watching our source files for us
|
400
|
-
this.
|
401
|
-
app_1.knapsackEvents.onPatternsDataReady((
|
402
|
-
this.
|
346
|
+
__classPrivateFieldGet(this, _RendererWebpackBase_instances, "m", _RendererWebpackBase_prepWebpack).call(this);
|
347
|
+
app_1.knapsackEvents.onPatternsDataReady(() => {
|
348
|
+
__classPrivateFieldGet(this, _RendererWebpackBase_instances, "m", _RendererWebpackBase_writeKsEntryFile).call(this);
|
403
349
|
});
|
404
350
|
this.startWebpackWatch();
|
405
351
|
}
|
406
|
-
// eslint-disable-next-line class-methods-use-this
|
407
352
|
onChange() {
|
408
353
|
// overwriting so we can call event after webpack compiles
|
409
354
|
}
|
410
|
-
|
411
|
-
const results = imports.reduce((cur, imp) => {
|
412
|
-
const prevImport = cur.imports.find(({ importInfo: { name, path } }) => {
|
413
|
-
if (name === imp.importInfo.name && path === imp.importInfo.path) {
|
414
|
-
return true;
|
415
|
-
}
|
416
|
-
return false;
|
417
|
-
});
|
418
|
-
if (!prevImport) {
|
419
|
-
cur.declaredVars.push(imp.importInfo.name);
|
420
|
-
cur.imports.push(imp);
|
421
|
-
}
|
422
|
-
return cur;
|
423
|
-
}, {
|
424
|
-
imports: [],
|
425
|
-
declaredVars: [],
|
426
|
-
});
|
427
|
-
return {
|
428
|
-
...results,
|
429
|
-
isDeclaredVarsUnique: (0, utils_1.isArrayOfStringsUnique)(results.declaredVars),
|
430
|
-
nameCollisions: (0, utils_1.getNonUniqueStringsFromArray)(results.declaredVars),
|
431
|
-
};
|
432
|
-
}
|
433
|
-
createJsImportCodeBlock({ imports: nonUniqueImports, }) {
|
434
|
-
const { imports } = this.makeKsJsImportsUnique({
|
435
|
-
imports: nonUniqueImports,
|
436
|
-
});
|
355
|
+
static createJsImportCodeBlock({ importMap, }) {
|
437
356
|
const declaredVars = [];
|
438
|
-
const impMap = (0, utils_1.groupBy)(
|
357
|
+
const impMap = (0, utils_1.groupBy)([...importMap.values()], (imp) => imp.path);
|
439
358
|
const importLines = Object.entries(impMap)
|
440
359
|
.sort(([a], [b]) => {
|
441
360
|
// sorting relative imports at bottom
|
@@ -451,46 +370,60 @@ class RendererWebpackBase extends renderers_1.RendererBase {
|
|
451
370
|
const importPath = (0, path_1.isAbsolute)(path)
|
452
371
|
? `./${(0, path_1.relative)(process.cwd(), path)}`
|
453
372
|
: path;
|
454
|
-
const {
|
455
|
-
declaredVars.push(imp.
|
456
|
-
switch (imp.
|
457
|
-
case '
|
458
|
-
cur.
|
373
|
+
const { renames, defaults, names } = imps.reduce((cur, imp) => {
|
374
|
+
declaredVars.push(imp.name);
|
375
|
+
switch (imp.type) {
|
376
|
+
case 'renamed':
|
377
|
+
cur.renames.push({
|
378
|
+
name: imp.name,
|
379
|
+
originalName: imp.originalName,
|
380
|
+
});
|
459
381
|
break;
|
460
382
|
case 'default':
|
461
|
-
cur.defaults.push(imp.
|
383
|
+
cur.defaults.push(imp.name);
|
462
384
|
break;
|
463
385
|
case 'named':
|
464
|
-
cur.names.push(imp.
|
386
|
+
cur.names.push(imp.name);
|
465
387
|
break;
|
466
388
|
default: {
|
467
|
-
|
389
|
+
const _exhaustiveCheck = imp;
|
468
390
|
}
|
469
391
|
}
|
470
392
|
return cur;
|
471
393
|
}, {
|
472
394
|
names: [],
|
473
395
|
defaults: [],
|
474
|
-
|
396
|
+
renames: [],
|
475
397
|
});
|
476
398
|
return [
|
477
|
-
...
|
399
|
+
...renames.map(({ name, originalName }) => `import { ${originalName} as ${name} } from '${importPath}';`),
|
478
400
|
...defaults.map((name) => `import ${name} from '${importPath}';`),
|
479
401
|
names.length > 0 &&
|
480
402
|
`import { ${names.join(',')} } from '${importPath}';`,
|
481
403
|
].filter(Boolean);
|
482
404
|
});
|
483
|
-
return
|
484
|
-
code: (0, file_utils_1.formatCodeSync)({
|
485
|
-
contents: [...new Set(importLines)].join('\n'),
|
486
|
-
path: 'fake-file.js',
|
487
|
-
}),
|
488
|
-
declaredVars,
|
489
|
-
isDeclaredVarsUnique: (0, utils_1.isArrayOfStringsUnique)(declaredVars),
|
490
|
-
nameCollisions: (0, utils_1.getNonUniqueStringsFromArray)(declaredVars),
|
491
|
-
};
|
405
|
+
return [...new Set(importLines)].join('\n');
|
492
406
|
}
|
493
407
|
}
|
494
408
|
exports.RendererWebpackBase = RendererWebpackBase;
|
495
|
-
_RendererWebpackBase_webpackAssetsPaths = new WeakMap(), _RendererWebpackBase_webpackAssetsPathsFilePath = new WeakMap(), _RendererWebpackBase_entryString = new WeakMap()
|
409
|
+
_RendererWebpackBase_webpackAssetsPaths = new WeakMap(), _RendererWebpackBase_webpackAssetsPathsFilePath = new WeakMap(), _RendererWebpackBase_entryString = new WeakMap(), _RendererWebpackBase_instances = new WeakSet(), _RendererWebpackBase_writeKsEntryFile = function _RendererWebpackBase_writeKsEntryFile() {
|
410
|
+
if (!this.entryFilePath) {
|
411
|
+
throw new Error('Cannot write entry file because entryFilePath is not set');
|
412
|
+
}
|
413
|
+
const contents = (0, create_js_import_entry_1.getEntryString)(this.getCodeSrcs());
|
414
|
+
if (contents === __classPrivateFieldGet(this, _RendererWebpackBase_entryString, "f"))
|
415
|
+
return;
|
416
|
+
__classPrivateFieldSet(this, _RendererWebpackBase_entryString, contents, "f");
|
417
|
+
(0, file_utils_1.writeFormattedFileSync)({
|
418
|
+
contents,
|
419
|
+
path: this.entryFilePath,
|
420
|
+
});
|
421
|
+
app_1.log.verbose(`Wrote entry file to ${this.entryFilePath}`, null, this.id);
|
422
|
+
}, _RendererWebpackBase_prepWebpack = function _RendererWebpackBase_prepWebpack() {
|
423
|
+
__classPrivateFieldGet(this, _RendererWebpackBase_instances, "m", _RendererWebpackBase_writeKsEntryFile).call(this);
|
424
|
+
const webpackConfig = this.createWebpackConfig();
|
425
|
+
app_1.log.verbose(`Webpack Config module.rules`, webpackConfig.module.rules, this.logPrefix);
|
426
|
+
// should this look for an already running webpack instance to possibly shut it down first? would only be from watch
|
427
|
+
this.webpackCompiler = this.webpack(webpackConfig);
|
428
|
+
};
|
496
429
|
//# sourceMappingURL=renderer-webpack-base.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"renderer-webpack-base.js","sourceRoot":"","sources":["../src/renderer-webpack-base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,uCAAoD;AACpD,uDAAwE;AACxE,qDAM8B;AAC9B,2CAKyB;AACzB,yEAAyE;AACzE,+BAAkD;AAClD,sDAKiB;AACjB,qEAAkF;AAClF,qEAA0D;AAG1D;;;GAGG;AACH,MAAM,aAAa,GAAG,MAAM,CAAC;AAI7B,SAAS,gBAAgB,CACvB,OAA0C;IAE1C,IAAI,CAA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CAAC;oBACd,YAAY,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,UAAU,IAAI;aACxD,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;QACL,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;CACF;AApfD,kDAofC;;IA7VG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CACb,0DAA0D,CAC3D,CAAC;IACJ,CAAC;IACD,MAAM,QAAQ,GAAG,IAAA,uCAAc,EAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IACpD,IAAI,QAAQ,KAAK,uBAAA,IAAI,wCAAa;QAAE,OAAO;IAC3C,uBAAA,IAAI,oCAAgB,QAAQ,MAAA,CAAC;IAC7B,IAAA,mCAAsB,EAAC;QACrB,QAAQ;QACR,IAAI,EAAE,IAAI,CAAC,aAAa;KACzB,CAAC,CAAC;IACH,SAAG,CAAC,OAAO,CAAC,uBAAuB,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1E,CAAC;IA2GC,uBAAA,IAAI,6EAAkB,MAAtB,IAAI,CAAoB,CAAC;IACzB,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,EAAE,CAAC;IACjD,SAAG,CAAC,OAAO,CACT,6BAA6B,EAC7B,aAAa,CAAC,MAAM,CAAC,KAAK,EAC1B,IAAI,CAAC,SAAS,CACf,CAAC;IACF,oHAAoH;IACpH,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;AACrD,CAAC"}
|
package/dist/types.d.ts
CHANGED
@@ -1,3 +1,40 @@
|
|
1
|
+
import type { KsRendererClientMeta } from '@knapsack/types';
|
2
|
+
export type ImportedModules<ExportedComponentType> = {
|
3
|
+
[id: string]: () => Promise<EsModuleObject<ExportedComponentType>>;
|
4
|
+
};
|
5
|
+
/** The result of `import`-ing a module */
|
6
|
+
export type EsModuleObject<ExportedType = unknown> = {
|
7
|
+
default?: ExportedType;
|
8
|
+
[key: string]: ExportedType;
|
9
|
+
};
|
10
|
+
/**
|
11
|
+
* This is `window.knapsack` inside the renderer client: the iframe container for renderer components
|
12
|
+
*/
|
13
|
+
export interface KsRendererClientUtils<ExportedComponentType = unknown, RendererMetaType extends RendererMetaBase = RendererMetaBase, RendererMethods extends Record<string, unknown> = Record<string, unknown>> {
|
14
|
+
importedModules: ImportedModules<ExportedComponentType>;
|
15
|
+
rendererMeta: RendererMetaType;
|
16
|
+
rendererMethods: RendererMethods;
|
17
|
+
getNeededImports: () => Promise<Record<string, ExportedComponentType>>;
|
18
|
+
getExtraImports: () => Promise<Record<keyof RendererMetaType['extraImports'], ExportedComponentType>>;
|
19
|
+
meta: KsRendererClientMeta;
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Keys are the `name`s of the imports
|
23
|
+
* This ensures that the names are unique since these become vars
|
24
|
+
*/
|
25
|
+
export type KsJsImportMap = Map<string, KsJsImportInfo>;
|
26
|
+
/**
|
27
|
+
* The shared requirements for the `rendererMeta` object that gets put in `<script>` tags in the client.
|
28
|
+
*/
|
29
|
+
export type RendererMetaBase<ExtraImportsNames extends string = string> = {
|
30
|
+
neededImportsByPath: Record<string, KsJsImportInfo[]>;
|
31
|
+
/**
|
32
|
+
* Use `getExtraImports()` to get these extra imports
|
33
|
+
*/
|
34
|
+
extraImports?: {
|
35
|
+
[Name in ExtraImportsNames]: KsJsImportInfo<Name>;
|
36
|
+
};
|
37
|
+
};
|
1
38
|
/**
|
2
39
|
* Information about JS imports that can describe how to import a module in these ways:
|
3
40
|
* - `import { Foo, Bar } from './foo';`
|
@@ -6,35 +43,22 @@
|
|
6
43
|
*
|
7
44
|
* Used in Webpack-based renderers
|
8
45
|
*/
|
9
|
-
export type KsJsImportInfo = {
|
46
|
+
export type KsJsImportInfo<Name extends string = string> = {
|
10
47
|
type: 'default';
|
11
48
|
/** import name from 'path'; */
|
12
|
-
name:
|
49
|
+
name: Name;
|
13
50
|
path: string;
|
14
51
|
} | {
|
15
52
|
type: 'named';
|
16
53
|
path: string;
|
17
54
|
/** import { name } from 'path'; */
|
18
|
-
name:
|
55
|
+
name: Name;
|
19
56
|
} | {
|
20
|
-
type: '
|
57
|
+
type: 'renamed';
|
21
58
|
path: string;
|
22
|
-
/** import
|
23
|
-
name:
|
24
|
-
};
|
25
|
-
|
26
|
-
type: 'pattern-template';
|
27
|
-
patternId: string;
|
28
|
-
templateId: string;
|
29
|
-
importInfo: KsJsImportInfo;
|
30
|
-
} | {
|
31
|
-
type: 'pattern-template-demo';
|
32
|
-
patternId: string;
|
33
|
-
templateId: string;
|
34
|
-
demoId: string;
|
35
|
-
importInfo: KsJsImportInfo;
|
36
|
-
} | {
|
37
|
-
type: 'extra';
|
38
|
-
importInfo: KsJsImportInfo;
|
59
|
+
/** import { originalName as name } from 'path'; */
|
60
|
+
name: Name;
|
61
|
+
/** import { originalName as name } from 'path'; */
|
62
|
+
originalName: string;
|
39
63
|
};
|
40
64
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,MAAM,eAAe,CAAC,qBAAqB,IAAI;IACnD,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,OAAO,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC;CACpE,CAAC;AAEF,0CAA0C;AAC1C,MAAM,MAAM,cAAc,CAAC,YAAY,GAAG,OAAO,IAAI;IACnD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