Update webpack

This commit is contained in:
Will Scullin 2024-09-16 21:11:58 -07:00
parent 18f2fc7acf
commit 1e330e69df
No known key found for this signature in database
GPG Key ID: B4C1F54591330F92
3 changed files with 1787 additions and 2262 deletions

4025
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,6 +32,7 @@
"@types/micromodal": "^0.3.3",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@types/jest": "^29.5.3",
"@types/node": "^18.19.39",
"ajv": "^6.9.2",
"babel-jest": "^29.5.0",
"eslint": "^8.3.0",
@ -44,8 +45,8 @@
"ts-loader": "^9.4.4",
"typescript": "^5.1.6",
"webpack": "^5.64.4",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.6.0"
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0"
},
"dependencies": {
"@whscullin/cpu6502": "file:submodules/cpu6502",

View File

@ -1,11 +1,10 @@
const path = require('path');
module.exports =
{
module.exports = {
mode: 'development',
devtool: 'source-map',
entry: {
apple1: path.resolve('js/entry1.js')
apple1: path.resolve('js/entry1.js'),
},
output: {
path: path.resolve('dist/'),
@ -16,24 +15,24 @@ module.exports =
test: /\.ts$/i,
use: [
{
loader: 'ts-loader'
loader: 'ts-loader',
},
],
exclude: /node_modules/,
}
]
},
],
},
resolve: {
extensions: ['.ts', '.js'],
extensions: ['.ts', '.js'],
alias: {
js: path.resolve(__dirname, 'js/')
}
js: path.resolve(__dirname, 'js/'),
},
},
devServer: {
compress: true,
static: {
watch: {
ignored: /(node_modules|test|\.git)/
ignored: /(node_modules|test|\.git)/,
},
directory: __dirname,
},