Skip to content

Commit

Permalink
Remove tiny dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jan 11, 2023
1 parent ab1ba50 commit 4e96024
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/webpack/get-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
let processImport = require('size-limit/process-import')
let escapeRegexp = require('escape-string-regexp')

function escapeRegexp(string) {
return string.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d')
}

const STATIC =
/\.(eot|woff2?|ttf|otf|svg|png|jpe?g|gif|webp|mp4|mp3|ogg|pdf|html|ico|md)$/
Expand Down
1 change: 0 additions & 1 deletion packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"size-limit": "8.1.0"
},
"dependencies": {
"escape-string-regexp": "^4.0.0",
"nanoid": "^3.3.4",
"webpack": "^5.75.0"
},
Expand Down
2 changes: 0 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e96024

Please sign in to comment.