pkgbld 1.29.1 → 1.29.2
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/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -372,15 +372,15 @@ function isExternalInput(currentInput, inputs, inputsExt, id, config) {
|
|
|
372
372
|
|
|
373
373
|
async function preprocess (provider, config, inputs, inputsExt) {
|
|
374
374
|
if (config.preprocess.length > 0) {
|
|
375
|
-
const pluginPreprocess = await provider.import('rollup-plugin-preprocess'
|
|
375
|
+
const pluginPreprocess = await provider.import('rollup-plugin-preprocess');
|
|
376
376
|
const include = config.preprocess.map(name => `${config.sourceDir}/${name}.${inputsExt.get(name)}`);
|
|
377
377
|
for (const format of config.formats) {
|
|
378
378
|
if (format !== 'umd') {
|
|
379
|
-
provider.provide(() => pluginPreprocess({ include, context: { [format]: true } }), 1000 /* Priority.preprocess */, { format });
|
|
379
|
+
provider.provide(() => pluginPreprocess.default({ include, context: { [format]: true } }), 1000 /* Priority.preprocess */, { format });
|
|
380
380
|
}
|
|
381
381
|
else {
|
|
382
382
|
for (const currentInput of config.umdInputs) {
|
|
383
|
-
provider.provide(() => pluginPreprocess({ include, context: { umd: true } }), 1000 /* Priority.preprocess */, { format, inputs: [`./${config.sourceDir}/${currentInput}.${inputsExt.get(currentInput)}`] });
|
|
383
|
+
provider.provide(() => pluginPreprocess.default({ include, context: { umd: true } }), 1000 /* Priority.preprocess */, { format, inputs: [`./${config.sourceDir}/${currentInput}.${inputsExt.get(currentInput)}`] });
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
}
|
|
@@ -901,7 +901,7 @@ async function writeJson(path, json) {
|
|
|
901
901
|
await fs.writeFile(path, toFormattedJson(json));
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
var version = "1.29.
|
|
904
|
+
var version = "1.29.2";
|
|
905
905
|
var name = "pkgbld";
|
|
906
906
|
var license = "MIT";
|
|
907
907
|
var author = "Konstantin Shutkin";
|
package/package.json
CHANGED