
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
gatsby-plugin-tsconfig-paths
Advanced tools
Adds support for tsconfig paths to Gatsby build process
This plugin will provide support for paths configured in your tsconfig by using
tsconfig-paths-webpack-plugin
.
gatsby-plugin-tsconfig-paths
in your projectnpm install -D gatsby-plugin-tsconfig-paths
gatsby-config.js
.// gatsby-config.js
module.exports = {
plugins: [
...,
`gatsby-plugin-tsconfig-paths`
]
}
tsconfig-paths-webpack-plugin
's optionsoptions
that are available for this plugin, see the
tsconfig-paths-webpack-plugin
documentation at the following:https://github.com/dividab/tsconfig-paths-webpack-plugin#options
for example:
// gatsby-config.js
module.exports = {
plugins: [
...,
{
resolve: `gatsby-plugin-tsconfig-paths`,
options: {
configFile: `${__dirname}/tsconfig.json`,
silent: true,
colors: false
},
}
]
}
configFile
: Defaults to the tsconfig.json
located at your process's
current working directory.extensions
: Defaults to ['.ts', '.tsx', '.js', '.jsx'].According to the documentation for tsconfig-paths-webpack-plugin
, if
the tsconfig option allowJs
is set, then this plugin's extensions
option should
be set to match webpack
's. Because typescript transpiling is usually done
in the same set of loaders as javascript, this plugin will set the webpack
extensions to match the default described above, using the resolvableExtensions
endpoint.
FAQs
Adds support for tsconfig paths to Gatsby build process
We found that gatsby-plugin-tsconfig-paths demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.