@react-aria/optimize-locales-plugin 3.0.0-nightly-835f0aa1b-250107 → 3.0.0-nightly-d87cc4422-250109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/LocalesPlugin.js +2 -1
  2. package/package.json +1 -1
package/LocalesPlugin.js CHANGED
@@ -10,6 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
  const {createUnplugin} = require('unplugin');
13
+ const path = require('path');
13
14
 
14
15
  module.exports = createUnplugin(({locales}) => {
15
16
  locales = locales.map(l => new Intl.Locale(l));
@@ -24,7 +25,7 @@ module.exports = createUnplugin(({locales}) => {
24
25
  if (match) {
25
26
  let locale = new Intl.Locale(match[0]);
26
27
  if (!locales.some(l => localeMatches(locale, l))) {
27
- return __dirname + '/empty.js';
28
+ return path.join(__dirname, 'empty.js');
28
29
  }
29
30
  }
30
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-aria/optimize-locales-plugin",
3
- "version": "3.0.0-nightly-835f0aa1b-250107",
3
+ "version": "3.0.0-nightly-d87cc4422-250109",
4
4
  "main": "LocalesPlugin.js",
5
5
  "types": "LocalesPlugin.d.ts",
6
6
  "dependencies": {