Skip to content

Instantly share code, notes, and snippets.

@WesleySmits
Created October 10, 2021 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WesleySmits/53653ba0896ed10316f574476c85e8ef to your computer and use it in GitHub Desktop.
Save WesleySmits/53653ba0896ed10316f574476c85e8ef to your computer and use it in GitHub Desktop.
TS Starter: Replace js loader with ts loader
module: {
rules: [
- {
- test: /\.js$/,
- exclude: /node_modules/,
- use: [
- 'babel-loader',
- ],
- }
+ {
+ test: /\.ts$/,
+ use: 'ts-loader',
+ exclude: /node_modules/,
+ }
],
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment