pkgbld 1.24.2 → 1.25.0

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -8
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -294,9 +294,9 @@ async function externals (provider, config, inputs) {
294
294
  const allowGenericUmd = config.umdInputs.length === 1 && inputs.length === 1;
295
295
  if (config.formats.length > 0) {
296
296
  const format = (allowGenericUmd ? undefined : config.formats.filter(format => format !== 'umd'));
297
- provider.provide(() => pluginExternals(config.includeExternals === false ? {} : {
298
- external: (id, external, importer) => includeExternals(importer, external, id, config)
299
- }), 2000 /* Priority.externals */, { format });
297
+ provider.provide(() => pluginExternals(config.includeExternals === false
298
+ ? {}
299
+ : (id, external, importer) => includeExternals(importer, external, id, config)), 2000 /* Priority.externals */, { format });
300
300
  // for eject config
301
301
  provider.globalImport('path', 'path');
302
302
  provider.globalSetup(includeExternals);
@@ -305,9 +305,7 @@ async function externals (provider, config, inputs) {
305
305
  const curry = (await provider.import('lodash/curry.js'));
306
306
  for (const currentInput of config.umdInputs) {
307
307
  const isExternal = curry((currentInput, id, external, importer) => includeExternals(importer, external, id, config) || isExternalInput(currentInput, inputs, id, config))(currentInput);
308
- provider.provide(() => pluginExternals({
309
- external: isExternal
310
- }), 2000 /* Priority.externals */, { format: 'umd', inputs: [`./${config.sourceDir}/${currentInput}.ts`] });
308
+ provider.provide(() => pluginExternals(isExternal), 2000 /* Priority.externals */, { format: 'umd', inputs: [`./${config.sourceDir}/${currentInput}.ts`] });
311
309
  }
312
310
  // for eject config
313
311
  if (config.formats.length === 0) {
@@ -804,7 +802,7 @@ async function writeJson(path, json) {
804
802
  await fs.writeFile(path, toFormattedJson(json));
805
803
  }
806
804
 
807
- var version = "1.24.2";
805
+ var version = "1.25.0";
808
806
  var name = "pkgbld";
809
807
  var license = "MIT";
810
808
  var author = "Konstantin Shutkin";
@@ -849,7 +847,7 @@ var dependencies = {
849
847
  "@rollup/plugin-node-resolve": "^15.2.2",
850
848
  "@rollup-extras/plugin-clean": "^1.3.8",
851
849
  "@rollup-extras/plugin-binify": "^1.1.9",
852
- "@rollup-extras/plugin-externals": "^1.1.11",
850
+ "@rollup-extras/plugin-externals": "^1.2.0",
853
851
  "@slimlib/refine-partition": "^1.0.2",
854
852
  "@slimlib/smart-mock": "^0.1.5",
855
853
  "is-builtin-module": "^3.2.1",
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.24.2",
2
+ "version": "1.25.0",
3
3
  "name": "pkgbld",
4
4
  "license": "MIT",
5
5
  "author": "Konstantin Shutkin",
@@ -39,7 +39,7 @@
39
39
  "@rollup/plugin-node-resolve": "^15.2.2",
40
40
  "@rollup-extras/plugin-clean": "^1.3.8",
41
41
  "@rollup-extras/plugin-binify": "^1.1.9",
42
- "@rollup-extras/plugin-externals": "^1.1.11",
42
+ "@rollup-extras/plugin-externals": "^1.2.0",
43
43
  "@slimlib/refine-partition": "^1.0.2",
44
44
  "@slimlib/smart-mock": "^0.1.5",
45
45
  "is-builtin-module": "^3.2.1",