Skip to content

Commit

Permalink
Clean up name
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Dec 6, 2021
1 parent 7352d90 commit dc8893e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/esbuild/get-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let updateCheckWithImports = require('size-limit/update-check-with-imports')
let processImport = require('size-limit/process-import')

module.exports = async function getConfig(limitConfig, check, output) {
await updateCheckWithImports(check, output)
await processImport(check, output)

let config = {
entryPoints: Array.isArray(check.files) ? check.files : [check.files],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let { writeFile } = require('fs').promises
let { join } = require('path')
let mkdirp = require('mkdirp')

module.exports = async function updateCheckWithImports(check, output) {
module.exports = async function processImport(check, output) {
if (!check.import) {
return
}
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack/get-config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
let updateCheckWithImports = require('size-limit/update-check-with-imports')
let processImport = require('size-limit/process-import')
let escapeRegexp = require('escape-string-regexp')

const STATIC =
/\.(eot|woff2?|ttf|otf|svg|png|jpe?g|gif|webp|mp4|mp3|ogg|pdf|html|ico|md)$/

module.exports = async function getConfig(limitConfig, check, output) {
await updateCheckWithImports(check, output)
await processImport(check, output)

if (check.files.length === 0) {
check.missed = true
Expand Down

0 comments on commit dc8893e

Please sign in to comment.