重写插件为V2格式:使用define+id+setup(ctx)+ctx.tool.transform注册工具

This commit is contained in:
ypshidifu
2026-09-21 17:04:34 +08:00
parent 5d43b5ed76
commit 0d19143065
3808 changed files with 1573549 additions and 76 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=`cygpath -w "$basedir"`
fi
;;
esac
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../node-gyp-build-optional-packages/optional.js" "$@"
else
exec node "$basedir/../node-gyp-build-optional-packages/optional.js" "$@"
fi