You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const locale = 'ru'
// @/langs/ru.js:
// // @preval
//
// module.exports = require('../tools/i18n').packs.ru
const langPack = require(`@/langs/${locale}.js`) // WORKS
//const langPack = preval`module.exports = require('../tools/i18n').packs.ru` // WORKS
//const langPack = preval`module.exports = require('../tools/i18n').packs.${locale}` // DOES NOT WORK
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: ${project}/plugins/index.js: Unable to determine the value of your preval string
at PluginPass.TaggedTemplateExpression (${project}/node_modules/babel-plugin-preval/dist/index.js:72:17)
The text was updated successfully, but these errors were encountered:
Using:
"webpack": "^4.46.0",
"nuxt": "^2.15.8",
"babel-plugin-preval": "^5.0.0",
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: ${project}/plugins/index.js: Unable to determine the value of your preval string
at PluginPass.TaggedTemplateExpression (${project}/node_modules/babel-plugin-preval/dist/index.js:72:17)
The text was updated successfully, but these errors were encountered: