Skip to content

Commit

Permalink
feat: export DynamicEntryPlugin and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Apr 29, 2024
1 parent 15b55da commit e77124e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/rspack/etc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,7 @@ export type DevtoolNamespace = z.infer<typeof devtoolNamespace>;
const devtoolNamespace: z.ZodString;

// @public (undocumented)
const DynamicEntryPlugin: {
export const DynamicEntryPlugin: {
new (context: string, entry: EntryDynamicNormalized): {
name: BuiltinPluginName;
_options: RawDynamicEntryPluginOptions;
Expand Down Expand Up @@ -7900,6 +7900,7 @@ declare namespace rspackExports {
ProgressPluginArgument,
EntryPlugin,
EntryOptions,
DynamicEntryPlugin,
ExternalsPlugin,
HotModuleReplacementPlugin,
LoaderOptionsPlugin,
Expand Down
2 changes: 2 additions & 0 deletions packages/rspack/src/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export type { ProgressPluginArgument } from "./builtin-plugin";
export { EntryPlugin } from "./builtin-plugin";
export type { EntryOptions } from "./builtin-plugin";

export { DynamicEntryPlugin } from "./builtin-plugin";

export { ExternalsPlugin } from "./builtin-plugin";

export { HotModuleReplacementPlugin } from "./builtin-plugin";
Expand Down
6 changes: 5 additions & 1 deletion website/components/PluginSupportStatusTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,11 @@ const pluginSupportStatusList: PluginSupportStatus[] = [
},
{
name: 'DynamicEntryPlugin',
status: SupportStatus.NotSupported,
status: SupportStatus.PartiallySupported,
notes: {
en: '`layer` and `wasmLoading` options are not supported, and `filename` cannot accept a function as a value',
zh: '不支持 `layer`、`wasmLoading` 选项,`filename` 无法接受函数作为值',
},
},
{
name: 'ElectronTargetPlugin',
Expand Down

0 comments on commit e77124e

Please sign in to comment.