don't need import assertion for json
This commit is contained in:
parent
76f8b767e4
commit
7d403b8c3a
|
@ -5,6 +5,5 @@ module.exports = {
|
|||
],
|
||||
plugins: [
|
||||
'@babel/plugin-transform-runtime',
|
||||
'@babel/plugin-syntax-import-assertions',
|
||||
],
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import i18n from "i18next";
|
||||
|
||||
import es_messages from './es.json' assert { type: "json" };
|
||||
import * as zh_messages from './zh.json';
|
||||
import es_messages from './es.json';
|
||||
import zh_messages from './zh.json';
|
||||
|
||||
i18n
|
||||
.init({
|
||||
|
|
Loading…
Reference in New Issue