@teambit/aspect-loader 1.0.394 → 1.0.396
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/__bit_junit.xml +2 -2
- package/artifacts/preview/teambit_harmony_aspect_loader-preview.js +1 -1
- package/artifacts/schema.json +1 -1
- package/dist/plugin.js +2 -1
- package/dist/plugin.js.map +1 -1
- package/dist/plugins.js +21 -2
- package/dist/plugins.js.map +1 -1
- package/dist/{preview-1725074428767.js → preview-1725247248940.js} +2 -2
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="1" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.harmony/aspect-loader@1.0.
|
|
4
|
-
<testcase classname="dist/core-aspects.spec.js" name="should include the namespace in the aspect name" time="0.
|
|
3
|
+
<testsuite name="teambit.harmony/aspect-loader@1.0.396" tests="1" failures="0" errors="0" skipped="0">
|
|
4
|
+
<testcase classname="dist/core-aspects.spec.js" name="should include the namespace in the aspect name" time="0.035"/>
|
|
5
5
|
</testsuite>
|
|
6
6
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/aspect-loader-preview"]=t():e["teambit.harmony/aspect-loader-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.harmony/aspect-loader-preview"]=t():e["teambit.harmony/aspect-loader-preview"]=t()}(self,(()=>(()=>{"use strict";var e={95677:(e,t,o)=>{var r={id:"teambit.harmony/aspect-loader@1.0.396",homepage:"https://bit.cloud/teambit/harmony/aspect-loader",exported:!0};function n(){const e=i(o(41594));return n=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,n.__bit_component=r,i.__bit_component=r;const a=()=>n().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},n().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/aspect-loader.svg"}));a.__bit_component=r,t.Logo=a},41594:e=>{e.exports=React}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{compositions:()=>f,compositions_metadata:()=>y,overview:()=>m});var n={};o.r(n),o.d(n,{default:()=>u});var i=o(95677);o(41594);const a=MdxJsReact,c=TeambitMdxUiMdxScopeContext;var s=["components"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},p.apply(null,arguments)}var l={},d="wrapper";function u(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,s);return(0,a.mdx)(d,p({},l,o,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(c.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}u.isMDXComponent=!0;const f=[i],m=[n],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return r})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -11114,7 +11114,7 @@
|
|
|
11114
11114
|
"componentId": {
|
|
11115
11115
|
"scope": "teambit.harmony",
|
|
11116
11116
|
"name": "aspect-loader",
|
|
11117
|
-
"version": "1.0.
|
|
11117
|
+
"version": "1.0.396"
|
|
11118
11118
|
},
|
|
11119
11119
|
"taggedModuleExports": []
|
|
11120
11120
|
}
|
package/dist/plugin.js
CHANGED
|
@@ -26,7 +26,8 @@ class Plugin {
|
|
|
26
26
|
}
|
|
27
27
|
require() {
|
|
28
28
|
// eslint-disable-next-line global-require, import/no-dynamic-require
|
|
29
|
-
|
|
29
|
+
const mod = require(this.path);
|
|
30
|
+
this._instance = mod.default;
|
|
30
31
|
this._instance.__path = this.path;
|
|
31
32
|
this._instance.__resolvedPath = require.resolve(this.path);
|
|
32
33
|
return this._instance;
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Plugin","constructor","def","path","_defineProperty","supportsRuntime","runtime","runtimes","includes","register","sourceAspect","module","object","require","_instance","default","__path","__resolvedPath","resolve","exports"],"sources":["plugin.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\nimport { PluginDefinition } from './plugin-definition';\n\nexport class Plugin {\n constructor(readonly def: PluginDefinition, readonly path: string) {}\n\n // consider adding a more abstract type here to allow users to ask for dependencies.\n private _instance: undefined | any;\n\n /**\n * determines whether the plugin supports a certain runtime.\n */\n supportsRuntime(runtime: string) {\n return this.def.runtimes.includes(runtime);\n }\n\n register(sourceAspect: Aspect, module?: unknown) {\n const object = module || this.require();\n this.def.register<unknown>(object, sourceAspect);\n }\n\n require() {\n // eslint-disable-next-line global-require, import/no-dynamic-require\n
|
|
1
|
+
{"version":3,"names":["Plugin","constructor","def","path","_defineProperty","supportsRuntime","runtime","runtimes","includes","register","sourceAspect","module","object","require","mod","_instance","default","__path","__resolvedPath","resolve","exports"],"sources":["plugin.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\nimport { PluginDefinition } from './plugin-definition';\n\nexport class Plugin {\n constructor(readonly def: PluginDefinition, readonly path: string) {}\n\n // consider adding a more abstract type here to allow users to ask for dependencies.\n private _instance: undefined | any;\n\n /**\n * determines whether the plugin supports a certain runtime.\n */\n supportsRuntime(runtime: string) {\n return this.def.runtimes.includes(runtime);\n }\n\n register(sourceAspect: Aspect, module?: unknown) {\n const object = module || this.require();\n this.def.register<unknown>(object, sourceAspect);\n }\n\n require() {\n // eslint-disable-next-line global-require, import/no-dynamic-require\n const mod = require(this.path);\n this._instance = mod.default as any;\n this._instance.__path = this.path;\n this._instance.__resolvedPath = require.resolve(this.path);\n return this._instance;\n }\n}\n"],"mappings":";;;;;;;;;AAGO,MAAMA,MAAM,CAAC;EAClBC,WAAWA,CAAUC,GAAqB,EAAWC,IAAY,EAAE;IAAA,KAA9CD,GAAqB,GAArBA,GAAqB;IAAA,KAAWC,IAAY,GAAZA,IAAY;IAEjE;IAAAC,eAAA;EAFoE;EAKpE;AACF;AACA;EACEC,eAAeA,CAACC,OAAe,EAAE;IAC/B,OAAO,IAAI,CAACJ,GAAG,CAACK,QAAQ,CAACC,QAAQ,CAACF,OAAO,CAAC;EAC5C;EAEAG,QAAQA,CAACC,YAAoB,EAAEC,MAAgB,EAAE;IAC/C,MAAMC,MAAM,GAAGD,MAAM,IAAI,IAAI,CAACE,OAAO,CAAC,CAAC;IACvC,IAAI,CAACX,GAAG,CAACO,QAAQ,CAAUG,MAAM,EAAEF,YAAY,CAAC;EAClD;EAEAG,OAAOA,CAAA,EAAG;IACR;IACA,MAAMC,GAAG,GAAGD,OAAO,CAAC,IAAI,CAACV,IAAI,CAAC;IAC9B,IAAI,CAACY,SAAS,GAAGD,GAAG,CAACE,OAAc;IACnC,IAAI,CAACD,SAAS,CAACE,MAAM,GAAG,IAAI,CAACd,IAAI;IACjC,IAAI,CAACY,SAAS,CAACG,cAAc,GAAGL,OAAO,CAACM,OAAO,CAAC,IAAI,CAAChB,IAAI,CAAC;IAC1D,OAAO,IAAI,CAACY,SAAS;EACvB;AACF;AAACK,OAAA,CAAApB,MAAA,GAAAA,MAAA","ignoreList":[]}
|
package/dist/plugins.js
CHANGED
|
@@ -18,6 +18,20 @@ function _toolboxPerformance() {
|
|
|
18
18
|
};
|
|
19
19
|
return data;
|
|
20
20
|
}
|
|
21
|
+
function _pMapSeries() {
|
|
22
|
+
const data = _interopRequireDefault(require("p-map-series"));
|
|
23
|
+
_pMapSeries = function () {
|
|
24
|
+
return data;
|
|
25
|
+
};
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
28
|
+
function _cli() {
|
|
29
|
+
const data = require("@teambit/cli");
|
|
30
|
+
_cli = function () {
|
|
31
|
+
return data;
|
|
32
|
+
};
|
|
33
|
+
return data;
|
|
34
|
+
}
|
|
21
35
|
function _harmony() {
|
|
22
36
|
const data = require("@teambit/harmony");
|
|
23
37
|
_harmony = function () {
|
|
@@ -67,7 +81,8 @@ class Plugins {
|
|
|
67
81
|
});
|
|
68
82
|
aspect.addRuntime({
|
|
69
83
|
provider: async () => {
|
|
70
|
-
await Promise.all(plugins.map(plugin => this.registerPluginWithTryCatch(plugin, aspect)));
|
|
84
|
+
// await Promise.all(plugins.map(async (plugin) => this.registerPluginWithTryCatch(plugin, aspect)));
|
|
85
|
+
await (0, _pMapSeries().default)(plugins, async plugin => this.registerPluginWithTryCatch(plugin, aspect));
|
|
71
86
|
// Return an empty object so haromny will have something in the extension instance
|
|
72
87
|
// otherwise it will throw an error when trying to access the extension instance (harmony.get)
|
|
73
88
|
return {};
|
|
@@ -88,13 +103,15 @@ class Plugins {
|
|
|
88
103
|
}
|
|
89
104
|
async registerPluginWithTryCatch(plugin, aspect) {
|
|
90
105
|
try {
|
|
106
|
+
(0, _cli().setExitOnUnhandledRejection)(false);
|
|
91
107
|
const isModule = (0, _isEsmModule().isEsmModule)(plugin.path);
|
|
92
108
|
const module = isModule ? await this.loadModule(plugin.path) : undefined;
|
|
93
109
|
if (isModule && !module) {
|
|
94
110
|
this.logger.consoleFailure(`failed to load plugin ${plugin.path}, make sure to use 'export default' to expose your plugin`);
|
|
95
111
|
return undefined;
|
|
96
112
|
}
|
|
97
|
-
|
|
113
|
+
plugin.register(aspect, module);
|
|
114
|
+
(0, _cli().setExitOnUnhandledRejection)(true);
|
|
98
115
|
} catch (firstErr) {
|
|
99
116
|
this.logger.warn(`failed loading plugin with pattern "${plugin.def.pattern}", in component ${this.component.id.toString()}, will try to fix and reload`, firstErr);
|
|
100
117
|
const isFixed = await this.triggerOnAspectLoadError(firstErr, this.component);
|
|
@@ -106,10 +123,12 @@ class Plugins {
|
|
|
106
123
|
this.logger.info(`the loading issue might be fixed now, re-loading plugin with pattern "${plugin.def.pattern}", in component ${this.component.id.toString()}`);
|
|
107
124
|
return plugin.register(aspect, module);
|
|
108
125
|
} catch (err) {
|
|
126
|
+
(0, _cli().setExitOnUnhandledRejection)(true);
|
|
109
127
|
this.logger.warn(`re-load of the plugin with pattern "${plugin.def.pattern}", in component ${this.component.id.toString()} failed as well`, err);
|
|
110
128
|
errAfterReLoad = err;
|
|
111
129
|
}
|
|
112
130
|
}
|
|
131
|
+
(0, _cli().setExitOnUnhandledRejection)(true);
|
|
113
132
|
const error = errAfterReLoad || firstErr;
|
|
114
133
|
throw error;
|
|
115
134
|
}
|
package/dist/plugins.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_nodeUtils","data","_interopRequireDefault","require","_toolboxPerformance","_harmony","_isEsmModule","_plugin","e","__esModule","default","Plugins","constructor","component","plugins","triggerOnAspectLoadError","logger","getByRuntime","runtime","filter","plugin","supportsRuntime","load","aspect","Aspect","create","id","toString","addRuntime","provider","Promise","all","map","registerPluginWithTryCatch","dependencies","loadModule","path","NativeCompileCache","uninstall","module","esmLoader","defaultModule","__path","__resolvedPath","resolve","isModule","isEsmModule","undefined","consoleFailure","register","firstErr","warn","def","pattern","isFixed","errAfterReLoad","info","err","error","has","Boolean","length","from","defs","resolvePath","flatMap","pluginDef","files","filesystem","byGlob","byRegex","file","resolvedPath","relative","Plugin","matches","exports"],"sources":["plugins.ts"],"sourcesContent":["import { Component } from '@teambit/component';\nimport esmLoader from '@teambit/node.utils.esm-loader';\nimport { NativeCompileCache } from '@teambit/toolbox.performance.v8-cache';\nimport { Logger } from '@teambit/logger';\nimport { Aspect } from '@teambit/harmony';\nimport { PluginDefinition } from './plugin-definition';\nimport { isEsmModule } from './is-esm-module';\nimport { Plugin } from './plugin';\nimport { OnAspectLoadErrorHandler } from './aspect-loader.main.runtime';\n\nexport type PluginMap = { [filePath: string]: PluginDefinition };\n\nexport class Plugins {\n constructor(\n readonly component: Component,\n readonly plugins: Plugin[],\n private triggerOnAspectLoadError: OnAspectLoadErrorHandler,\n private logger: Logger\n ) {}\n\n // computeDependencies(runtime: string): Aspect[] {\n // const inRuntime = this.getByRuntime(runtime);\n // return inRuntime.flatMap((plugin) => {\n // return plugin.def.dependencies;\n // });\n // }\n\n getByRuntime(runtime: string) {\n return this.plugins.filter((plugin) => {\n return plugin.supportsRuntime(runtime);\n });\n }\n\n async load(runtime: string) {\n const plugins = this.getByRuntime(runtime);\n const aspect = Aspect.create({\n id: this.component.id.toString(),\n });\n aspect.addRuntime({\n provider: async () => {\n await Promise.all(plugins.map((plugin) => this.registerPluginWithTryCatch(plugin, aspect)));\n // Return an empty object so haromny will have something in the extension instance\n // otherwise it will throw an error when trying to access the extension instance (harmony.get)\n return {};\n },\n runtime,\n // dependencies: this.computeDependencies(runtime)\n dependencies: [],\n });\n\n return aspect;\n }\n\n async loadModule(path: string) {\n NativeCompileCache.uninstall();\n const module = await esmLoader(path);\n const defaultModule = module.default;\n defaultModule.__path = path;\n defaultModule.__resolvedPath = require.resolve(path);\n return defaultModule;\n }\n\n async registerPluginWithTryCatch(plugin: Plugin, aspect: Aspect) {\n try {\n const isModule = isEsmModule(plugin.path);\n const module = isModule ? await this.loadModule(plugin.path) : undefined;\n if (isModule && !module) {\n this.logger.consoleFailure(\n `failed to load plugin ${plugin.path}, make sure to use 'export default' to expose your plugin`\n );\n return undefined;\n }\n return plugin.register(aspect, module);\n } catch (firstErr: any) {\n this.logger.warn(\n `failed loading plugin with pattern \"${\n plugin.def.pattern\n }\", in component ${this.component.id.toString()}, will try to fix and reload`,\n firstErr\n );\n const isFixed = await this.triggerOnAspectLoadError(firstErr, this.component);\n let errAfterReLoad;\n if (isFixed) {\n try {\n const isModule = isEsmModule(plugin.path);\n const module = isModule ? await this.loadModule(plugin.path) : undefined;\n this.logger.info(\n `the loading issue might be fixed now, re-loading plugin with pattern \"${\n plugin.def.pattern\n }\", in component ${this.component.id.toString()}`\n );\n return plugin.register(aspect, module);\n } catch (err: any) {\n this.logger.warn(\n `re-load of the plugin with pattern \"${\n plugin.def.pattern\n }\", in component ${this.component.id.toString()} failed as well`,\n err\n );\n errAfterReLoad = err;\n }\n }\n const error = errAfterReLoad || firstErr;\n throw error;\n }\n }\n\n has() {\n return Boolean(this.plugins.length);\n }\n\n static from(\n component: Component,\n defs: PluginDefinition[],\n triggerOnAspectLoadError: OnAspectLoadErrorHandler,\n logger: Logger,\n resolvePath?: (path: string) => string\n ) {\n const plugins = defs.flatMap((pluginDef) => {\n const files =\n typeof pluginDef.pattern === 'string'\n ? component.filesystem.byGlob([pluginDef.pattern])\n : component.filesystem.byRegex(pluginDef.pattern);\n\n return files.map((file) => {\n const resolvedPath = resolvePath ? resolvePath(file.relative) : file.path;\n return new Plugin(pluginDef, resolvedPath);\n });\n });\n\n return new Plugins(component, plugins, triggerOnAspectLoadError, logger);\n }\n\n /**\n * Get the plugin files from the component.\n */\n static files(component: Component, defs: PluginDefinition[], resolvePath?: (path: string) => string): string[] {\n const files = defs.flatMap((pluginDef) => {\n const matches =\n typeof pluginDef.pattern === 'string'\n ? component.filesystem.byGlob([pluginDef.pattern])\n : component.filesystem.byRegex(pluginDef.pattern);\n\n return matches.map((file) => {\n return res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AACE,OAAO,CAACJ,SAAS,CAACb,OAAO,CAAC;MAErD,OAAOsB,OAAO,CAAC3C,GAAG,CAAEuC,IAAI,IAAK;QAC3B,OAAOP,WAAW,GAAGA,WAAW,CAACO,IAAI,CAACE,QAAQ,CAAC,GAAGF,IAAI,CAACnC,IAAI;MAC7D,CAAC,CAAC;IACJ,CAAC,CAAC;IACF,OAAO+B,KAAK;EACd;AACF;AAACS,OAAA,CAAAjE,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_nodeUtils","data","_interopRequireDefault","require","_toolboxPerformance","_pMapSeries","_cli","_harmony","_isEsmModule","_plugin","e","__esModule","default","Plugins","constructor","component","plugins","triggerOnAspectLoadError","logger","getByRuntime","runtime","filter","plugin","supportsRuntime","load","aspect","Aspect","create","id","toString","addRuntime","provider","pMapSeries","registerPluginWithTryCatch","dependencies","loadModule","path","NativeCompileCache","uninstall","module","esmLoader","defaultModule","__path","__resolvedPath","resolve","setExitOnUnhandledRejection","isModule","isEsmModule","undefined","consoleFailure","register","firstErr","warn","def","pattern","isFixed","errAfterReLoad","info","err","error","has","Boolean","length","from","defs","resolvePath","flatMap","pluginDef","files","filesystem","byGlob","byRegex","map","file","resolvedPath","relative","Plugin","matches","exports"],"sources":["plugins.ts"],"sourcesContent":["import { Component } from '@teambit/component';\nimport esmLoader from '@teambit/node.utils.esm-loader';\nimport { NativeCompileCache } from '@teambit/toolbox.performance.v8-cache';\nimport { Logger } from '@teambit/logger';\nimport pMapSeries from 'p-map-series';\nimport { setExitOnUnhandledRejection } from '@teambit/cli';\nimport { Aspect } from '@teambit/harmony';\nimport { PluginDefinition } from './plugin-definition';\nimport { isEsmModule } from './is-esm-module';\nimport { Plugin } from './plugin';\nimport { OnAspectLoadErrorHandler } from './aspect-loader.main.runtime';\n\nexport type PluginMap = { [filePath: string]: PluginDefinition };\n\nexport class Plugins {\n constructor(\n readonly component: Component,\n readonly plugins: Plugin[],\n private triggerOnAspectLoadError: OnAspectLoadErrorHandler,\n private logger: Logger\n ) {}\n\n // computeDependencies(runtime: string): Aspect[] {\n // const inRuntime = this.getByRuntime(runtime);\n // return inRuntime.flatMap((plugin) => {\n // return plugin.def.dependencies;\n // });\n // }\n\n getByRuntime(runtime: string) {\n return this.plugins.filter((plugin) => {\n return plugin.supportsRuntime(runtime);\n });\n }\n\n async load(runtime: string) {\n const plugins = this.getByRuntime(runtime);\n const aspect = Aspect.create({\n id: this.component.id.toString(),\n });\n aspect.addRuntime({\n provider: async () => {\n // await Promise.all(plugins.map(async (plugin) => this.registerPluginWithTryCatch(plugin, aspect)));\n await pMapSeries(plugins, async (plugin) => this.registerPluginWithTryCatch(plugin, aspect));\n // Return an empty object so haromny will have something in the extension instance\n // otherwise it will throw an error when trying to access the extension instance (harmony.get)\n return {};\n },\n runtime,\n // dependencies: this.computeDependencies(runtime)\n dependencies: [],\n });\n\n return aspect;\n }\n\n async loadModule(path: string) {\n NativeCompileCache.uninstall();\n const module = await esmLoader(path);\n const defaultModule = module.default;\n defaultModule.__path = path;\n defaultModule.__resolvedPath = require.resolve(path);\n return defaultModule;\n }\n\n async registerPluginWithTryCatch(plugin: Plugin, aspect: Aspect) {\n try {\n setExitOnUnhandledRejection(false);\n const isModule = isEsmModule(plugin.path);\n const module = isModule ? await this.loadModule(plugin.path) : undefined;\n if (isModule && !module) {\n this.logger.consoleFailure(\n `failed to load plugin ${plugin.path}, make sure to use 'export default' to expose your plugin`\n );\n return undefined;\n }\n plugin.register(aspect, module);\n setExitOnUnhandledRejection(true);\n } catch (firstErr: any) {\n this.logger.warn(\n `failed loading plugin with pattern \"${\n plugin.def.pattern\n }\", in component ${this.component.id.toString()}, will try to fix and reload`,\n firstErr\n );\n const isFixed = await this.triggerOnAspectLoadError(firstErr, this.component);\n let errAfterReLoad;\n if (isFixed) {\n try {\n const isModule = isEsmModule(plugin.path);\n const module = isModule ? await this.loadModule(plugin.path) : undefined;\n this.logger.info(\n `the loading issue might be fixed now, re-loading plugin with pattern \"${\n plugin.def.pattern\n }\", in component ${this.component.id.toString()}`\n );\n return plugin.register(aspect, module);\n } catch (err: any) {\n setExitOnUnhandledRejection(true);\n this.logger.warn(\n `re-load of the plugin with pattern \"${\n plugin.def.pattern\n }\", in component ${this.component.id.toString()} failed as well`,\n err\n );\n errAfterReLoad = err;\n }\n }\n setExitOnUnhandledRejection(true);\n const error = errAfterReLoad || firstErr;\n throw error;\n }\n }\n\n has() {\n return Boolean(this.plugins.length);\n }\n\n static from(\n component: Component,\n defs: PluginDefinition[],\n triggerOnAspectLoadError: OnAspectLoadErrorHandler,\n logger: Logger,\n resolvePath?: (path: string) => string\n ) {\n const plugins = defs.flatMap((pluginDef) => {\n const files =\n typeof pluginDef.pattern === 'string'\n ? component.filesystem.byGlob([pluginDef.pattern])\n : component.filesystem.byRegex(pluginDef.pattern);\n\n return files.map((file) => {\n const resolvedPath = resolvePath ? resolvePath(file.relative) : file.path;\n return new Plugin(pluginDef, resolvedPath);\n });\n });\n\n return new Plugins(component, plugins, triggerOnAspectLoadError, logger);\n }\n\n /**\n * Get the plugin files from the component.\n */\n static files(component: Component, defs: PluginDefinition[], resolvePath?: (path: string) => string): string[] {\n const files = defs.flatMap((pluginDef) => {\n const matches =\n typeof pluginDef.pattern === 'string'\n ? component.filesystem.byGlob([pluginDef.pattern])\n : component.filesystem.byRegex(pluginDef.pattern);\n\n return matches.map((file) => {\n return resolvePath ? resolvePath(file.relative) : file.path;\n });\n });\n return files;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,oBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,mBAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,YAAA;EAAA,MAA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CAAC,GAChDvC,SAAS,CAACsD,UAAU,CAACE,OAAO,CAACJ,SAAS,CAACb,OAAO,CAAC;MAErD,OAAOuB,OAAO,CAACL,GAAG,CAAEC,IAAI,IAAK;QAC3B,OAAOR,WAAW,GAAGA,WAAW,CAACQ,IAAI,CAACE,QAAQ,CAAC,GAAGF,IAAI,CAACrC,IAAI;MAC7D,CAAC,CAAC;IACJ,CAAC,CAAC;IACF,OAAOgC,KAAK;EACd;AACF;AAACU,OAAA,CAAAjE,OAAA,GAAAA,OAAA","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_aspect-loader@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_aspect-loader@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_aspect-loader@1.0.396/dist/aspect-loader.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_aspect-loader@1.0.396/dist/aspect-loader.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/aspect-loader",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.396",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/aspect-loader",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "aspect-loader",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.396"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"@teambit/node.utils.esm-loader": "0.0.6",
|
|
23
23
|
"@teambit/bvm.config": "0.2.5",
|
|
24
24
|
"@teambit/bvm.path": "0.1.2",
|
|
25
|
-
"@teambit/component": "1.0.
|
|
26
|
-
"@teambit/graphql": "1.0.
|
|
27
|
-
"@teambit/bit": "1.8.
|
|
28
|
-
"@teambit/cli": "0.0.
|
|
25
|
+
"@teambit/component": "1.0.396",
|
|
26
|
+
"@teambit/graphql": "1.0.396",
|
|
27
|
+
"@teambit/bit": "1.8.47",
|
|
28
|
+
"@teambit/cli": "0.0.973",
|
|
29
29
|
"@teambit/compilation.modules.babel-compiler": "0.0.139",
|
|
30
|
-
"@teambit/envs": "1.0.
|
|
30
|
+
"@teambit/envs": "1.0.396",
|
|
31
31
|
"@teambit/harmony.modules.requireable-component": "0.0.497",
|
|
32
|
-
"@teambit/logger": "0.0.
|
|
33
|
-
"@teambit/scope": "1.0.
|
|
32
|
+
"@teambit/logger": "0.0.1066",
|
|
33
|
+
"@teambit/scope": "1.0.396",
|
|
34
34
|
"@teambit/toolbox.performance.v8-cache": "0.0.33"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|