webextension-polyfill/test/run-module-bundlers-smokete...

15 lines
553 B
Bash
Executable File

#!/bin/bash
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