Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Commit c92f1ae

Browse files
committed
Fixes bundle size
1 parent 44058d6 commit c92f1ae

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-dynamic-routes",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"description": "Super simple way to create dynamic routes with url parameters with Next.js",
55
"main": "dist/index.js",
66
"repository": {

webpack.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ module.exports = {
1919
]
2020
},
2121
plugins: [
22-
new webpack.DefinePlugin({'process.env.NODE_ENV': '"production"'})
22+
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"production"' })
2323
],
2424
externals: [
25-
nodeExternals({
26-
modulesFromFile: true
27-
})
28-
]
25+
nodeExternals()
26+
]
2927
}

0 commit comments

Comments
 (0)