globalize-webpack-plugin
globalize-webpack-plugin copied to clipboard
Used in conjunction with webpack.DllReferencePlugin throw an error in prod mode
Conf: Webpack 3.7.1 / globalize-webpack-plugin 2.0.1 Error: TypeError: request.replace is not a function at GlobalizeCompilerHelper.isCompiledDataModule (\node_modules\globalize-webpack-plugin\GlobalizeCompilerHelper.js:87:44)
ebpack conf: plugins: [ new GlobalizePlugin({ production: true, developmentLocale: 'en', // locale to be used for development. supportedLocales: ['en', 'fr', 'es', 'de'], // locales that should be built support for. messages: 'ClientApp/messages/[locale].json', // messages (optional) output: 'globalize-compiled-data-[locale].[hash].js', // build output. }), new webpack.DllReferencePlugin({ context: __dirname, manifest: require('./wwwroot/dist/vendor-manifest.json') }) ]
Hitting the same. @Guymestef Any luck?
@cwgorman I ended up replacing globalize with i18next + momentjs