We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
context
When specifying an option. The config file name is resolved without considering the option context https://webpack.js.org/configuration/entry-context/#context
The text was updated successfully, but these errors were encountered:
const path = require('path') class TsconfigPathsWebpackContextPlugin { constructor(rawOptions = {}) { this.options = rawOptions } apply(compiler) { compiler.hooks.afterPlugins.tap('TsconfigPathsWebpackContextPlugin', (compiler) => { const tsconfigPathsPlugin = new TsconfigPathsPlugin({ ...this.options, configFile: this.options.configFile || path.resolve(compiler.options.context, './tsconfig.json') }) compiler.options.resolve.plugins = (compiler.options.resolve.plugins || []).concat(tsconfigPathsPlugin) }) } } module.exports = TsconfigPathsWebpackContextPlugin
Sorry, something went wrong.
No branches or pull requests
When specifying an option. The config file name is resolved without considering the option
context
https://webpack.js.org/configuration/entry-context/#context
The text was updated successfully, but these errors were encountered: