Open jaredleechn opened 6 years ago
in babelrc.js i added this
module.exports = { plugins: [ [ 'module-resolver', { alias: { components: path.join(__dirname, './src/components'), }, }, ], [ 'import', { libraryName: 'antd', style: true, // or 'css' }, ], [ "react-intl", { "messagesDir": "./build/messages/" } ] ], };
in webpackrc.js i have this
const path = require('path'); export default { entry: 'src/index.js', extraBabelPlugins: [ ['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }], ["react-intl", { "messagesDir": "./build/messages/" }] ], env: { development: { extraBabelPlugins: ['dva-hmr'], }, }, externals: { '@antv/data-set': 'DataSet', rollbar: 'rollbar', }, alias: { components: path.resolve(__dirname, 'src/components/'), }, ignoreMomentLocale: true, theme: './src/theme.js', html: { template: './src/index.ejs', }, lessLoaderOptions: { javascriptEnabled: true, }, disableDynamicImport: true, publicPath: '/', hash: true, };
in one tab i run "start": "cross-env ESLINT=none roadhog dev" from package.json
in other tab it still give me same error about runing babel-intl with webpack ???
What did i miss ?
currently, atool-l10n need user running webpack manually to scan i18n json meta files via babel-plugin-react-intl, sometimes user will forget this, atool-l10n should do it first before all task