Skip to content

Commit

Permalink
Skip ts when bundling for webpack (CMU-313#185)
Browse files Browse the repository at this point in the history
* Skip ts when bundling for webpack

* Making linter changes

---------

Co-authored-by: Angela Zhang <[email protected]>
  • Loading branch information
victorhuangwq and angelaz1 authored Mar 11, 2023
1 parent 647b8e6 commit 8473333
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
"@types/lodash": "^4.14.191",
"@types/nconf": "^0.10.3",
"@types/semver": "^7.3.13",
"@types/validator": "^13.7.0",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"coveralls": "3.1.1",
Expand All @@ -163,6 +164,7 @@
"grunt": "1.5.3",
"grunt-contrib-watch": "1.1.0",
"husky": "8.0.2",
"ignore-loader": "^0.1.2",
"jsdom": "20.0.3",
"lint-staged": "13.1.0",
"mocha": "10.2.0",
Expand Down
10 changes: 10 additions & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = {
'node_modules',
...activePlugins.map(p => `node_modules/${p}/node_modules`),
],
extensions: ['.js', '.json', '.wasm', '.mjs'],
alias: {
assets: path.resolve(__dirname, 'build/public'),
forum: path.resolve(__dirname, 'build/public/src/client'),
Expand All @@ -59,4 +60,13 @@ module.exports = {
'ace/ace': path.resolve(__dirname, 'build/public/src/modules/ace-editor.js'),
},
},
module: {
rules: [
{
test: /\.(ts|tsx)$/,
exclude: /node_modules/,
loader: 'ignore-loader',
},
],
},
};

0 comments on commit 8473333

Please sign in to comment.