2018-06-19 22:33:12 +00:00
|
|
|
#!/bin/bash
|
2018-06-19 22:35:04 +00:00
|
|
|
set -eo pipefail
|
|
|
|
|
2018-06-19 22:33:12 +00:00
|
|
|
echo ""
|
|
|
|
echo "Test webextension-polyfill bundled with webpack"
|
2017-04-12 15:30:33 +00:00
|
|
|
echo "==============================================="
|
|
|
|
|
2018-04-09 12:18:37 +00:00
|
|
|
webpack --mode production --entry ./test/fixtures/bundle-entrypoint.js --output /tmp/webpack-bundle.js
|
2017-04-12 15:30:33 +00:00
|
|
|
TEST_BUNDLED_POLYFILL=/tmp/webpack-bundle.js npm run test
|
|
|
|
|
2018-06-19 22:33:12 +00:00
|
|
|
echo ""
|
|
|
|
echo "Test webextension-polyfill bundled with browserify"
|
2017-04-12 15:30:33 +00:00
|
|
|
echo "=================================================="
|
|
|
|
|
|
|
|
browserify test/fixtures/bundle-entrypoint.js > /tmp/browserify-bundle.js
|
|
|
|
TEST_BUNDLED_POLYFILL=/tmp/browserify-bundle.js npm run test
|