Closed sapkra closed 2 years ago
Issue templates are required here. Please fill one out and update your issue, and we'll reopen.
@shellscape I created this issue by referencing code, so there was no hint regarding templates. I updated it now.
Thanks. Will take a look as time allows.
ah yes, it's also confusing. I've put an unnecessary JSON.stringify()
there, and then it wouldn't parse correctly.
Type should be JSON, you can use:
https://www.npmjs.com/package/@teambit/base-ui.utils.primitives
or
export type Nullable = undefined | null;
export type Primitive = string | number | bigint | boolean | Nullable;
export type JSON = { [key: string]: JSON | Primitive | (Primitive | JSON)[] };
@shellscape
Cloud you change the type Manifest
to Record<string, unknown> ?
I think that this issue is related to below.
https://github.com/shellscape/webpack-manifest-plugin/issues/278
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ
this issue is resolved by #282. @shellscape - can you merge? :D
Expected Behavior
It should be possible to return a nested javascript Object in the generate function, as documented:
Actual Behavior
One accepts an Object with string values.
Additional Information
https://github.com/shellscape/webpack-manifest-plugin/blob/77eca2545b70ea235fc2c6b5ddf0f90540dd8588/src/index.ts#L13
https://github.com/shellscape/webpack-manifest-plugin/blob/77eca2545b70ea235fc2c6b5ddf0f90540dd8588/src/index.ts#L20-L24
The code doesn't match the docs. I think the types are wrong but prove me wrong.