Skip to content

Commit

Permalink
perf: 🔥 optimize dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Aug 20, 2022
1 parent 0c45cb2 commit ee132d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ["@minko-fe"]
extends: ['@minko-fe'],
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"author": "hemengke1997 <https://github.com/hemengke1997>",
"license": "MIT",
"dependencies": {
"@stdlib/regexp-regexp": "^0.0.8",
"query-string": "^7.1.1"
},
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import type { AtRule, ChildNode, Comment, Container, Declaration, Rule, Warning as postcssWarning } from 'postcss'
import queryString from 'query-string'
import reRegExp from '@stdlib/regexp-regexp'
import { maybeRegExpList } from './constant'
import { filterPropList } from './filter-prop-list'
import type { PxtoremOptions } from '.'
import { defaultOptions } from '.'

function reRegExp() {
return /^\/((?:\\\/|[^\/])+)\/([imgy]*)$/
}

export function initOptions(options?: PxtoremOptions) {
return Object.assign({}, defaultOptions, options)
}
Expand Down

0 comments on commit ee132d7

Please sign in to comment.