Skip to content

Commit

Permalink
fix: export of vite plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Sep 12, 2023
1 parent 956b60e commit 44c3621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vite/plugin.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interface VitePlugin {
name: string;
}
export declare function I18NextHMRPlugin(
export declare function i18nextHMRPlugin(
options: { localesDir: string } | { localesDirs: string[] }
): VitePlugin;
2 changes: 1 addition & 1 deletion lib/vite/plugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path');

module.exports = function i18nextHMRPlugin(options) {
module.exports.i18nextHMRPlugin = function i18nextHMRPlugin(options) {
let absoluteLocaleDirs = [];

return {
Expand Down

0 comments on commit 44c3621

Please sign in to comment.