Skip to content

Commit

Permalink
fix: clean webpack configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Feb 18, 2025
1 parent fea451b commit 2121d55
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
5 changes: 0 additions & 5 deletions packages/specs/json-mapper/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,5 @@ module.exports = require("@tsed/webpack-config").create({
externals: {
"@tsed/core": "@tsed/core",
"@tsed/schema": "@tsed/schema"
},
resolve: {
alias: {
picomatch: require.resolve("picomatch-browser")
}
}
});
5 changes: 0 additions & 5 deletions packages/third-parties/schema-formio/webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,5 @@ module.exports = require("@tsed/webpack-config").create({
formiojs: "formiojs",
lodash: "lodash",
moment: "moment"
},
resolve: {
alias: {
picomatch: require.resolve("picomatch-browser")
}
}
});
16 changes: 1 addition & 15 deletions tools/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,14 @@ exports.create = ({root, name, entry, externals = {}, resolve = {}}) => {
"@tsed/di": "@tsed/di",
"@tsed/json-mapper": "@tsed/json-mapper",
"@tsed/event-emitter": "@tsed/event-emitter",
"@tsed/exceptions": "@tsed/exceptions",
...externals
},
module: {
rules: [
{
test: /\.(ts|js)?$/,
use: [
{
loader: "webpack-remove-code-blocks",
options: {
blocks: [
"debug",
"devblock",
{
start: "node_env:start",
end: "node_env:end",
prefix: "/*",
suffix: "*/"
}
]
}
},
{
loader: "ts-loader",
options: {
Expand Down

0 comments on commit 2121d55

Please sign in to comment.