We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d382c59 commit e7053ddCopy full SHA for e7053dd
packages/dev/optimize-locales-plugin/LocalesPlugin.js
@@ -10,6 +10,7 @@
10
* governing permissions and limitations under the License.
11
*/
12
const {createUnplugin} = require('unplugin');
13
+const path = require('path');
14
15
module.exports = createUnplugin(({locales}) => {
16
locales = locales.map(l => new Intl.Locale(l));
@@ -24,7 +25,7 @@ module.exports = createUnplugin(({locales}) => {
24
25
if (match) {
26
let locale = new Intl.Locale(match[0]);
27
if (!locales.some(l => localeMatches(locale, l))) {
- return __dirname + '/empty.js';
28
+ return path.join(__dirname, 'empty.js');
29
}
30
31
0 commit comments