preact.config.js does not update babel config #1657
Unanswered
TbirdDuncan
asked this question in
Q&A
Replies: 2 comments 8 replies
-
How are you attempting to alter the config? We need a lot more information to help you. Vague titles are not problem descriptions. You can alter the Babel config with the following:
export default (config, env, helpers) => {
const { rule } = helpers.getLoadersByName(config, 'babel')[0];
const babelConfig = rule.options;
babelConfig.plugins.push(
'my-babel-plugin'
);
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Attempting to change the config to be conducive to jest testing as jest errors out when rendering due to jsx, @babel/preset-react is needed...
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Same as title, a .babelrc.json does however work.
Beta Was this translation helpful? Give feedback.
All reactions