chore: add fork-ts-checker-webpack-plugin example #3269
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue (if exists)
Summary
馃 Generated by Copilot at 1b8237a
This pull request adds TypeScript support to the
plugin-compat
example project using thefork-ts-checker-webpack-plugin
. It modifies therspack.config.js
,package.json
, andpnpm-lock.yaml
files to include the plugin as a dev dependency and configures it in the webpack build. It also adds atsconfig.json
file and a sample TypeScript filesecret.ts
that is imported by theindex.js
file.Walkthrough
馃 Generated by Copilot at 1b8237a
fork-ts-checker-webpack-plugin
as a dev dependency to improve TypeScript type checking during webpack compilation (link, link, link, link)rspack.config.js
file (link, link)tsconfig.json
file to configure TypeScript options and files for the plugin (link)secret.ts
from the JavaScript entry pointindex.js
to demonstrate the plugin functionality (link, link)@babel/code-frame
andsemver
(link, link, link, link, link, link, link, link, link)node-abort-controller
that is used by the plugin to cancel asynchronous operations (link)dev: false
flag from some sub-dependencies of the project that are now considered dev dependencies by default due to the plugin (link)