Fix locale switcher and cover it with e2e

This commit is contained in:
SleepWalker
2019-12-28 13:13:11 +02:00
parent ba49382fb6
commit b2c072e5e1
6 changed files with 83 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ function transform(src, modulePath, rootContext) {
// TODO: can't find the way to strip out this path part programmatically
// this is a directory from resolve.modules config
// may be this may work: .replace(this._compiler.options.resolve.root, '')
.replace('src/', '')
.replace('packages/app/', '')
.replace(/^\/|\/$/g, '')
.replace(/\//g, '.');