Skip to content

Commit b7bbbc6

Browse files
committed
upgrade code to webpack v5
Ref: https://webpack.js.org/migrate/5/
1 parent 3437b26 commit b7bbbc6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,11 @@ async function webpackConfig(
158158
entry: {},
159159
target: 'node',
160160
plugins: [
161-
new webpack.IgnorePlugin(/vertx/),
161+
new webpack.IgnorePlugin({ resourceRegExp: /vertx/ }),
162162
new webpack.DefinePlugin(defineEnv),
163163
],
164164
output: {
165165
path: functionsPath,
166-
filename: '[name].js',
167166
libraryTarget: 'commonjs',
168167
},
169168
optimization: {

0 commit comments

Comments
 (0)