diff --git a/lib/router.js b/lib/router.js index aaed1c5..2c9a2e8 100644 --- a/lib/router.js +++ b/lib/router.js @@ -14,7 +14,7 @@ function assetsRoot() { function testPathToChunkName(testPath) { const name = testPath .replace(/\//g, '-') - .replace(/\.js$/, '.bundle.js'); + .replace(/\.jsx?$/, '.bundle.js'); return encodeURI(name); }