@plaudit/webpack-extensions 2.57.3 → 2.58.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.
package/build/shared.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export type AdvancedOutputConfig = {
|
|
|
46
46
|
assumeGlobalizedPlauditLibraries?: boolean;
|
|
47
47
|
externalize?: Required<Configuration>['output']['library'];
|
|
48
48
|
bundleAnalyzer?: boolean;
|
|
49
|
-
locations?: UsageLocations;
|
|
49
|
+
locations?: UsageLocations | string;
|
|
50
50
|
};
|
|
51
51
|
export type VerifiedAdvancedOutputConfig = Omit<AdvancedOutputConfig, 'destination'> & Required<Pick<AdvancedOutputConfig, 'destination'>>;
|
|
52
52
|
export type PlauditWordpressWebpackConfig = {
|
|
@@ -520,7 +520,8 @@ function makePlainV1WebpackConfig(config, commonConfig, webpackConfig, dest, src
|
|
|
520
520
|
return (0, common_config_helpers_1.commonMakeWebpackConfig)(config, commonConfig, webpackConfig, srcIsDirectory, dest, src, srcRoot, entry, plugins);
|
|
521
521
|
}
|
|
522
522
|
function makePlainV2WebpackConfig(config, commonConfig, webpackConfig, dest, src, srcRoot, plugins, srcIsDirectory) {
|
|
523
|
-
|
|
523
|
+
const locations = typeof dest.locations === 'string' ? { handle: dest.locations } : dest.locations ?? {};
|
|
524
|
+
plugins.push(new PlainEntrypointsConfigFileGeneratorPlugin_1.PlainEntrypointsConfigFileGeneratorPlugin(process.cwd(), config.outputDir, locations, config.plainEntrypointsHandlePrefix, config.useUnifiedLoader));
|
|
524
525
|
const baseDest = stripExtension(dest.destination);
|
|
525
526
|
const entry = srcIsDirectory // This being true implies that srcRoot is not an array
|
|
526
527
|
? (0, common_config_helpers_1.resolveEntryFromDirectory)(commonConfig, srcRoot, dest)
|