Skip to content

Commit 305a358

Browse files
committed
sed compatibility for macOS
1 parent 4ee2a17 commit 305a358

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
@@ -646,7 +646,7 @@ endif
646646

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

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

0 commit comments

Comments
 (0)