Sha256: 73ec8c3abe3f0ee87c09e480857588f28e0a97eef0b747c23d391a672958b238
Contents?: true
Size: 758 Bytes
Versions: 7
Compression:
Stored size: 758 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 = () => generateWebpackConfig(merge(commonOptions, ignoreWarningsConfig)) module.exports = commonWebpackConfig
Version data entries
7 entries across 7 versions & 1 rubygems