Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

babel-plugin do parse first #12

Open
jaredleechn opened this issue Nov 17, 2017 · 1 comment
Open

babel-plugin do parse first #12

jaredleechn opened this issue Nov 17, 2017 · 1 comment

Comments

@jaredleechn
Copy link
Member

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

@tabaktoni
Copy link

tabaktoni commented Aug 10, 2018

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants