corvée(dépendances) ajoute Carbon Fields

This commit is contained in:
gcch 2024-08-09 18:45:01 +02:00
commit 62368587e5
459 changed files with 72750 additions and 26 deletions

View file

@ -0,0 +1,40 @@
/**
* External dependencies.
*/
const webpack = require( 'webpack' );
const { merge } = require( 'webpack-merge' );
/**
* Internal dependencies.
*/
const base = require( './webpack.base' );
const paths = require( './paths' );
const wpPackages = require( './wp-packages' );
const config = {
entry: {
vendor: './packages/vendor/index.js'
}
};
module.exports = [
merge( base, config, {
output: {
path: paths.gutenbergBuildPath
},
externals: Object.assign( {}, wpPackages.externals, {
'lodash': 'lodash',
'react': 'React',
'react-dom': 'ReactDOM',
'jquery': 'jQuery',
} )
} ),
merge( base, config, {
output: {
path: paths.classicBuildPath
},
plugins: [
new webpack.ProvidePlugin( wpPackages.providers )
]
} )
];