Sha256: 9bc4a521cd23039f6760e8af3c4467711a54b33d8f174ef5f72cd447de1d0c8f
Contents?: true
Size: 766 Bytes
Versions: 6
Compression:
Stored size: 766 Bytes
Contents
// Common configuration applying to client and server configuration // const { globalMutableWebpackConfig: baseClientWebpackConfig, merge } = require('shakapacker') const { generateWebpackConfig, merge } = require('shakapacker') const commonOptions = { resolve: { extensions: ['.css', '.ts', '.tsx'] } } const ignoreWarningsConfig = { ignoreWarnings: [/Module not found: Error: Can't resolve 'react-dom\/client'/], }; // Copy the object using merge b/c the baseClientWebpackConfig and commonOptions are mutable globals // const commonWebpackConfig = () => (merge({}, baseClientWebpackConfig, commonOptions)) const commonWebpackConfig = () => (merge({}, generateWebpackConfig(), commonOptions, ignoreWarningsConfig)) module.exports = commonWebpackConfig
Version data entries
6 entries across 6 versions & 1 rubygems