@putout/engine-loader 15.1.0 → 15.1.1
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/lib/index.js +7 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const {loadPlugin} = require('./load/load');
|
|
4
3
|
const {createAsyncLoader} = require('./load/async-loader');
|
|
5
4
|
const {parsePluginNames} = require('./plugins/parse-plugin-names');
|
|
6
5
|
const parseProcessorNames = require('./processors/parse-processor-names');
|
|
@@ -126,3 +125,10 @@ function extendRules(rule, plugin) {
|
|
|
126
125
|
|
|
127
126
|
return result;
|
|
128
127
|
}
|
|
128
|
+
|
|
129
|
+
// add support of esm.sh
|
|
130
|
+
// https://github.com/esm-dev/esm.sh/issues/1045
|
|
131
|
+
function loadPlugin({name, namespace}) {
|
|
132
|
+
const {loadPlugin} = require('./load/load');
|
|
133
|
+
return loadPlugin({name, namespace});
|
|
134
|
+
}
|
package/package.json
CHANGED