feat(plugin-cli): add cli af (#3465)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-07-30 18:10:45 +00:00
1 parent 568d5e4cdf
commit 18fcaff5ee
27 files changed
+469 -59

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ const OptimizeOptionOptions: (
minimizer: [
new TerserPlugin({
minify: TerserPlugin.swcMinify,
exclude: [/\.min\.js$/, /plugins\/.+\/.+\.mjs$/],
exclude: [/plugins\/.+\/.+\.js$/, /plugins\/.+\/.+\.mjs$/],
parallel: true,
extractComments: true,
terserOptions: {
+1
View File
@@ -10,6 +10,7 @@
"dependsOn": ["^build"],
"inputs": [
"{projectRoot}/**/*",
"{projectRoot}/public/plugins/**/*",
"{workspaceRoot}/packages/component/src/**/*",
"{workspaceRoot}/packages/debug/src/**/*",
"{workspaceRoot}/packages/graphql/src/**/*",
+1 -1
View File
@@ -396,7 +396,7 @@ const entryLogger = new DebugLogger('plugin:entry');
export const evaluatePluginEntry = (pluginName: string) => {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const currentImportMap = pluginNestedImportsMap.get(pluginName)!;
const pluginExports = currentImportMap.get('index.mjs');
const pluginExports = currentImportMap.get('index.js');
assertExists(pluginExports);
const entryFunction = pluginExports.get('entry');
const cleanup = entryFunction(<PluginContext>{