feat: webpack bundling - include node_modules in dist
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
This commit is contained in:
parent
baf5f74808
commit
6c5feccebf
@ -1,5 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/nest-cli",
|
||||
"collection": "@nestjs/schematics",
|
||||
"sourceRoot": "src"
|
||||
"sourceRoot": "src",
|
||||
"compilerOptions": {
|
||||
"webpack": true,
|
||||
"deleteOutDir": true,
|
||||
"webpackConfigPath": "webpack.config.js"
|
||||
}
|
||||
}
|
||||
|
||||
5329
package-lock.json
generated
Normal file
5329
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -10,20 +10,21 @@
|
||||
"@nestjs/common": "^10.0.0",
|
||||
"@nestjs/core": "^10.0.0",
|
||||
"@nestjs/platform-express": "^10.0.0",
|
||||
"@nestjs/typeorm": "^10.0.0",
|
||||
"@nestjs/schedule": "^4.0.0",
|
||||
"typeorm": "^0.3.0",
|
||||
"@nestjs/typeorm": "^10.0.0",
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.14.0",
|
||||
"mysql2": "^3.0.0",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"rxjs": "^7.8.0",
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.14.0"
|
||||
"typeorm": "^0.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nestjs/cli": "^10.0.0",
|
||||
"@nestjs/schematics": "^10.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"@types/node": "^20.0.0",
|
||||
"ts-loader": "^9.5.7",
|
||||
"ts-node": "^10.9.1",
|
||||
"@types/node": "^20.0.0"
|
||||
"typescript": "^5.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
8
webpack.config.js
Normal file
8
webpack.config.js
Normal file
@ -0,0 +1,8 @@
|
||||
module.exports = (options) => ({
|
||||
...options,
|
||||
externals: [],
|
||||
output: {
|
||||
...options.output,
|
||||
libraryTarget: 'commonjs2',
|
||||
},
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user