mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 17:15:11 +03:00
24179bd9be
swc_webpack_ast: - Add `proces_file`. - Add support for typescript.
16 lines
415 B
Bash
Executable File
16 lines
415 B
Bash
Executable File
#!/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
|
|
|
|
export RUST_BACKTRACE=1
|
|
|
|
cargo test --no-run
|
|
UPDATE=1 cargo test -q
|
|
|
|
(cd next.js/packages/next-swc && yarn build-native --release)
|
|
|
|
(cd next.js && NEXT_PRIVATE_LOCAL_WEBPACK5=1 yarn testheadless $@ || true)
|
|
(cd next.js && NEXT_PRIVATE_LOCAL_WEBPACK5=1 yarn next dev $@)
|