Skip to content

Instantly share code, notes, and snippets.

@Athelian
Last active November 7, 2022 11:47
Show Gist options
  • Save Athelian/c5538d8222ddb5551d0acad8a39eeb80 to your computer and use it in GitHub Desktop.
Save Athelian/c5538d8222ddb5551d0acad8a39eeb80 to your computer and use it in GitHub Desktop.
config-overrides.js
const path = require("path");
module.exports = function override(config, env) {
const babelRule = config.module.rules[1].oneOf.find(
(rules) => rules.include === path.resolve(__dirname, "./src")
);
babelRule.include = [
babelRule.include,
path.resolve(__dirname, "../typescript/src")
];
return config;
};
const path = require("path");
module.exports = function override(config, env) {
const babelRule = config.module.rules[1].oneOf.find(
(rules) => rules.include === path.resolve(__dirname, "./src")
);
babelRule.include = [
babelRule.include,
path.resolve(__dirname, "../flow/src")
];
return config;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment