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

Version Path
shakapacker-7.2.3 spec/dummy/config/webpack/commonWebpackConfig.js
shakapacker-7.3.0.beta.1 spec/dummy/config/webpack/commonWebpackConfig.js
shakapacker-7.2.2 spec/dummy/config/webpack/commonWebpackConfig.js
shakapacker-7.2.1 spec/dummy/config/webpack/commonWebpackConfig.js
shakapacker-7.2.0 spec/dummy/config/webpack/commonWebpackConfig.js
shakapacker-7.2.0.rc.0 spec/dummy/config/webpack/commonWebpackConfig.js
shakapacker-7.1.0 spec/dummy/config/webpack/commonWebpackConfig.js