From ba54f94e834ca713bef03990f55c9f288f5e0693 Mon Sep 17 00:00:00 2001 From: GiveMe-A-Name Date: Fri, 19 May 2023 11:16:24 +0800 Subject: [PATCH 1/2] feat: the runtime package export loadable_bundler_plugin --- .changeset/itchy-tools-vanish.md | 6 ++++++ packages/runtime/plugin-runtime/package.json | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 .changeset/itchy-tools-vanish.md diff --git a/.changeset/itchy-tools-vanish.md b/.changeset/itchy-tools-vanish.md new file mode 100644 index 000000000000..e8411e741afd --- /dev/null +++ b/.changeset/itchy-tools-vanish.md @@ -0,0 +1,6 @@ +--- +'@modern-js/runtime': minor +--- + +feat: the runtime package export `loadable_bundler_plugin` +feat: runtime 包导出 `loadable_bundler_plugin` diff --git a/packages/runtime/plugin-runtime/package.json b/packages/runtime/plugin-runtime/package.json index e9dc61616f5d..a8b6ace7c752 100644 --- a/packages/runtime/plugin-runtime/package.json +++ b/packages/runtime/plugin-runtime/package.json @@ -88,6 +88,11 @@ "jsnext:source": "./src/router/runtime/server.ts", "types": "./dist/types/router/runtime/server.d.ts", "default": "./dist/esm/router/runtime/server.js" + }, + "./loadable_bundler_plugin": { + "jsnext:source": "./src/ssr/cli/loadable-bundler-plugin.ts", + "types": "./dist/types/ssr/cli/loadable-bundler-plugin.d.ts", + "default": "./dist/cjs/ssr/cli/loadable-bundler-plugin.js" } }, "typesVersions": { @@ -130,6 +135,9 @@ ], "router/server": [ "./dist/types/router/runtime/server.d.ts" + ], + "loadable_bundler_plugin": [ + "./dist/types/ssr/cli/loadable-bundler-plugin.d.ts" ] } }, From ceba89c45942bc7087e3a9486945094a3deb6d18 Mon Sep 17 00:00:00 2001 From: GiveMe-A-Name Date: Fri, 19 May 2023 11:31:00 +0800 Subject: [PATCH 2/2] refactor: rename the exports --- packages/runtime/plugin-runtime/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime/plugin-runtime/package.json b/packages/runtime/plugin-runtime/package.json index a8b6ace7c752..222a5afeb7f0 100644 --- a/packages/runtime/plugin-runtime/package.json +++ b/packages/runtime/plugin-runtime/package.json @@ -89,7 +89,7 @@ "types": "./dist/types/router/runtime/server.d.ts", "default": "./dist/esm/router/runtime/server.js" }, - "./loadable_bundler_plugin": { + "./loadable-bundler-plugin": { "jsnext:source": "./src/ssr/cli/loadable-bundler-plugin.ts", "types": "./dist/types/ssr/cli/loadable-bundler-plugin.d.ts", "default": "./dist/cjs/ssr/cli/loadable-bundler-plugin.js" @@ -136,7 +136,7 @@ "router/server": [ "./dist/types/router/runtime/server.d.ts" ], - "loadable_bundler_plugin": [ + "loadable-bundler-plugin": [ "./dist/types/ssr/cli/loadable-bundler-plugin.d.ts" ] }