vault/ui/webpack.jsondiffpatch.config.js
Vault Automation 42d01ee5fe
Upgrade jsondiffpatch dependency version (#9651) (#10282)
* update jsondiffpatch dep + use webpack to convert into UMD format

* do not lint vendor files

* update test

* lint fix

* fix merge conflict error

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
2025-10-22 15:02:47 -05:00

25 lines
497 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
/* eslint-env node */
'use strict';
const path = require('path');
module.exports = {
entry: {
jsondiffpatch: require.resolve('jsondiffpatch'),
htmlformatter: require.resolve('jsondiffpatch/formatters/html'),
},
output: {
path: path.resolve(__dirname, 'vendor'),
filename: '[name].umd.js',
library: '[name]',
libraryTarget: 'umd',
globalObject: 'this',
},
mode: 'production',
};