Skip to content

Commit

Permalink
change export name
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Oct 28, 2018
1 parent 50c3921 commit 19f5f3f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 8.3.5

- rename named export to window.ReactI18next for standalone js

### 8.3.4

- try fixing standalone browser build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-i18next",
"version": "8.3.4",
"version": "8.3.5",
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
"main": "dist/commonjs/index.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion react-i18next.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(factory((global['react-i18next'] = {}),global.React));
(factory((global.ReactI18next = {}),global.React));
}(this, (function (exports,React) { 'use strict';

var React__default = 'default' in React ? React['default'] : React;
Expand Down
2 changes: 1 addition & 1 deletion react-i18next.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ const compress = argv.uglify;
const babelOptions = {
presets: [
[
'@babel/preset-env',
'@babel/preset-env',
{
targets: {
'esmodules': true
esmodules: true,
},
},
],
Expand All @@ -36,7 +36,7 @@ export default {
external: ['react', 'react-dom'],
// moduleId: 'react-i18next',
output: {
name: 'react-i18next',
name: 'ReactI18next',
format,
file,
},
Expand Down

0 comments on commit 19f5f3f

Please sign in to comment.