Last active
November 7, 2022 11:47
-
-
Save Athelian/c5538d8222ddb5551d0acad8a39eeb80 to your computer and use it in GitHub Desktop.
config-overrides.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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