Skip to content

Commit

Permalink
Merge pull request #470 from ckeditor/ck/deps
Browse files Browse the repository at this point in the history
Internal: Fixed resolving the peer dependencies.
  • Loading branch information
pomek authored Apr 18, 2024
2 parents fbb9c91 + 92a2cc7 commit 3942e7b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ const path = require( 'path' );
const webpack = require( 'webpack' );
const { bundler } = require( '@ckeditor/ckeditor5-dev-utils' );
const TerserPlugin = require( 'terser-webpack-plugin' );
const { dependencies, peerDependencies } = require( './package.json' );

const externals = Object.keys( { ...dependencies, ...peerDependencies } ).reduce( ( acc, currentValue ) => {
acc[ currentValue ] = currentValue;

return acc;
}, {} );

module.exports = {
context: __dirname,

devtool: 'source-map',
performance: { hints: false },
externals: {
react: {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
},
externals,

entry: path.join( __dirname, 'src', 'index.ts' ),

Expand Down

0 comments on commit 3942e7b

Please sign in to comment.