@putout/bundle 5.0.3 → 5.0.4
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/bundle/putout.js +6 -6
- package/bundle/putout.min.js +1 -1
- package/bundle/putout.slim.js +6 -6
- package/package.json +1 -1
package/bundle/putout.slim.js
CHANGED
|
@@ -111585,7 +111585,8 @@ const simpleImport = async (url) => {
|
|
|
111585
111585
|
};
|
|
111586
111586
|
|
|
111587
111587
|
const {createRequire: createRequire$1} = module$1;
|
|
111588
|
-
|
|
111588
|
+
|
|
111589
|
+
const require$1 = createRequire$1(import.meta.url);
|
|
111589
111590
|
const {assign: assign$3} = Object;
|
|
111590
111591
|
const stub$2 = () => () => {};
|
|
111591
111592
|
|
|
@@ -111602,7 +111603,7 @@ const createAsyncLoader = (type, overrides = {}) => {
|
|
|
111602
111603
|
const shortName = name.replace('import:', '');
|
|
111603
111604
|
|
|
111604
111605
|
return await cleverLoad([
|
|
111605
|
-
require$
|
|
111606
|
+
require$1.resolve(shortName),
|
|
111606
111607
|
], simpleImport$1);
|
|
111607
111608
|
}
|
|
111608
111609
|
|
|
@@ -111633,7 +111634,7 @@ async function cleverLoad(names, load) {
|
|
|
111633
111634
|
return reporter;
|
|
111634
111635
|
|
|
111635
111636
|
if (e.code === 'ERR_UNSUPPORTED_DIR_IMPORT') {
|
|
111636
|
-
const fullName = require$
|
|
111637
|
+
const fullName = require$1.resolve(name);
|
|
111637
111638
|
|
|
111638
111639
|
[e, reporter] = await tryToCatch$1(load, fullName);
|
|
111639
111640
|
|
|
@@ -112128,8 +112129,6 @@ function parseRuleName(rule) {
|
|
|
112128
112129
|
}
|
|
112129
112130
|
|
|
112130
112131
|
const {createRequire} = module$1;
|
|
112131
|
-
const require$1 = createRequire(import.meta.url);
|
|
112132
|
-
|
|
112133
112132
|
const {isArray: isArray$9} = Array;
|
|
112134
112133
|
|
|
112135
112134
|
const loadPlugins = (options) => {
|
|
@@ -112212,7 +112211,8 @@ function extendRules(rule, plugin) {
|
|
|
112212
112211
|
// add support of esm.sh
|
|
112213
112212
|
// https://github.com/esm-dev/esm.sh/issues/1045
|
|
112214
112213
|
function loadOnePlugin({name, namespace}) {
|
|
112215
|
-
const
|
|
112214
|
+
const require = createRequire(import.meta.url);
|
|
112215
|
+
const {loadPlugin} = require('../load/load.js');
|
|
112216
112216
|
|
|
112217
112217
|
return loadPlugin({
|
|
112218
112218
|
name,
|
package/package.json
CHANGED