Skip to content

Commit 53c5716

Browse files
authored
sed compatibility for macOS
1 parent 6efe259 commit 53c5716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ endif
649649

650650
${PHP_DIST_DIR}/%.js: source/%.js
651651
npx babel $< --out-dir ${PHP_DIST_DIR}
652-
sed -i 's|import.meta|(undefined /*import.meta*/)|' ${PHP_DIST_DIR}/$(notdir $@)
652+
sed -i '' -e 's|import.meta|(undefined /*import.meta*/)|' ${PHP_DIST_DIR}/$(notdir $@)
653653
perl -pi -w -e 's|require\("(\..+?)"\)|require("\1.js")|' ${PHP_DIST_DIR}/$(notdir $@)
654654

655655
${PHP_DIST_DIR}/%.mjs: source/%.js

0 commit comments

Comments
 (0)