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

12 lines
529 B
Bash
Raw Normal View History

echo "\nTest 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 "\nTest 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