diff --git a/.husky/commit-msg b/.husky/commit-msg index 850e65b..c005ffb 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,14 +1,2 @@ #!/bin/sh -export NVM_DIR="$HOME/.nvm/nvm.sh" -. "$(dirname $NVM_DIR)/nvm.sh" - -export NVM_DIR="$HOME/.nvm" -a=$(nvm ls | grep 'node') -b=${a#*(-> } -v=${b%%[)| ]*} - -export PATH="$NVM_DIR/versions/node/$v/bin:$PATH" - -. "$(dirname "$0")/_/husky.sh" - npx --no -- commitlint --edit "" diff --git a/src/lib/plugin.js b/src/lib/plugin.js index cf7683e..4ce4255 100644 --- a/src/lib/plugin.js +++ b/src/lib/plugin.js @@ -130,9 +130,8 @@ export default createUnplugin( return { code: ast.generate(tree), - /** @type {any} */ map: { - mappings: null + mappings: '' } } } @@ -140,7 +139,7 @@ export default createUnplugin( return { code, map: { - mappings: null + mappings: '' } } },