dr2009

Results 7 comments of dr2009

``` function strip(num, precision = 12) { return +parseFloat(num.toPrecision(precision)); } ``` 这个加号是不是多余的??? parseFloat本身就是返回数字

```js const genericNames = require('generic-names'); // v3.0.0 const CSS_MODULE_LOCAL_IDENT_NAME = '[local]___[hash:base64:5]'; // old: generateScopedName: CSS_MODULE_LOCAL_IDENT_NAME generateScopedName: genericNames(CSS_MODULE_LOCAL_IDENT_NAME) ```

> https://platform.openai.com/docs/quickstart > > 使用chrome,翻译后点击到其他页面会白屏,控制台报错: DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. https://webpack.js.org/concepts/ +1

typo: - on-my-zsh -> oh-my-zsh - Tings -> Things

just add `handleDefaultImport: true` ```js [ '@swc/plugin-transform-imports', { '^(.*?)(\\.scss)$': { handleDefaultImport: true, transform: '{{matches.[1]}}.css', }, }, ], ```