17 lines
571 B
Bash
Executable File
17 lines
571 B
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
|
|
echo ""
|
|
echo "Test webextension-polyfill bundled with webpack"
|
|
echo "==============================================="
|
|
|
|
webpack --mode production --entry ./test/fixtures/bundle-entrypoint.js --output /tmp/webpack-bundle.js
|
|
TEST_BUNDLED_POLYFILL=/tmp/webpack-bundle.js npm run test
|
|
|
|
echo ""
|
|
echo "Test webextension-polyfill bundled with browserify"
|
|
echo "=================================================="
|
|
|
|
browserify test/fixtures/bundle-entrypoint.js > /tmp/browserify-bundle.js
|
|
TEST_BUNDLED_POLYFILL=/tmp/browserify-bundle.js npm run test
|