2021-12-08 13:53:43 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
# This script tests if webpack ast is identical to webpack ast produced by acorn,
|
|
|
|
# by running webpack via next.js
|
|
|
|
|
2021-12-14 11:28:51 +03:00
|
|
|
export RUST_BACKTRACE=1
|
|
|
|
|
|
|
|
cargo test --no-run
|
|
|
|
UPDATE=1 cargo test -q
|
2021-12-08 13:53:43 +03:00
|
|
|
|
2021-12-15 12:33:35 +03:00
|
|
|
(cd next.js/packages/next-swc && yarn build-native --release)
|
2021-12-08 13:53:43 +03:00
|
|
|
|
2021-12-15 12:33:35 +03:00
|
|
|
(cd next.js && NEXT_PRIVATE_LOCAL_WEBPACK5=1 yarn testheadless $@ || true)
|
|
|
|
(cd next.js && NEXT_PRIVATE_LOCAL_WEBPACK5=1 yarn next dev $@)
|