-
-
- {{ form.url.label(class_='form-label') }}
- {% if form.url.errors %}
- {% for error in form.url.errors %}
- {{ error }}
- {% endfor %}
- {% endif %}
-
- {{ form.url(class_='form-field text-field required',
- placeholder='e.g. https://example.com',
- required=True, type='url', pattern='') }}
-
-
-
-
-
- {{ form.description.label(class_='form-label') }}
- {% if form.description.errors %}
- {% for error in form.description.errors %}
- {{ error }}
- {% endfor %}
- {% endif %}
-
-
- {{ form.description(class_='form-field text-field required',
- placeholder="e.g. The video doesn't play",
- required=True) }}
-
-
-
- {{ form.steps_reproduce.label(class_='form-label') }}
- {{ form.steps_reproduce(class_='form-field text-field js-autogrow-field',
- rows=3,
- placeholder="Please be as detailed as possible.") }}
-
-
-
-
- {{ form.browser.label(class_='form-label') }}
- {{ form.browser(class_='form-field text-field') }}
-
-
-
- {{ form.os(class_='form-field text-field') }}
-
-
-
-
- {% if not session.username %}
-
-
- {{ form.contact.label(class_='form-label') }}
- {% if form.contact.errors %}
- {% for error in form.contact.errors %}
- {{ error }}
- {% endfor %}
- {% endif %}
-
- {{ form.contact(class_='form-field text-field',
- placeholder='GitHub nickname',
- pattern='^[a-z\\d](?:[a-z\\d]|-(?=[a-z\\d])){0,38}$') }}
-
-
- {% endif %}
-
-
- All information included in this report will be publicly visible.
-
Learn More
-
-
-
- {{ form.username.label(class_='form-label') }}
- {% if form.username.errors %}
- {% for error in form.username.errors %}
- {{ error }}
- {% endfor %}
- {% endif %}
- {{ form.username(class_='u-formInput') }}
-
-
-
- {{ form.hidden_tag() }}
-
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js
index a560711e0..354ecb521 100644
--- a/webpack/webpack.common.js
+++ b/webpack/webpack.common.js
@@ -2,7 +2,6 @@ const path = require("path");
const webpack = require("webpack");
const entries = require("./entries.js");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
-const postcssPresetEnv = require("postcss-preset-env");
module.exports = {
entry: entries,
@@ -29,26 +28,7 @@ module.exports = {
},
{
test: /\.css$/,
- use: [
- MiniCssExtractPlugin.loader,
- "css-loader",
- {
- loader: "postcss-loader",
- options: {
- ident: "postcss",
- plugins: () => [
- postcssPresetEnv({
- browsers: [
- "defaults",
- "Firefox > 52",
- "Safari >=9",
- "Chrome >=75",
- ],
- }),
- ],
- },
- },
- ],
+ use: [MiniCssExtractPlugin.loader, "css-loader", "postcss-loader"],
},
{
test: /\.(png|svg|jpg|gif)$/,
@@ -57,7 +37,10 @@ module.exports = {
],
},
resolve: {
- modules: [path.resolve(__dirname, "../webcompat/static/js/vendor")],
+ modules: [
+ path.resolve(__dirname, "../webcompat/static/js/vendor"),
+ "node_modules",
+ ],
alias: {
templates: path.resolve(__dirname, "../webcompat/templates/"),
jquery: "jquery-3.3.1.min.js",
diff --git a/webpack/webpack.prod.js b/webpack/webpack.prod.js
index 382ed5325..8ecbcae5a 100644
--- a/webpack/webpack.prod.js
+++ b/webpack/webpack.prod.js
@@ -15,8 +15,17 @@ const getOptions = (env) => {
if (!isEs5(env)) return {};
return {
+ sourceType: "unambiguous",
babelrc: false,
- presets: ["@babel/env"],
+ presets: [
+ [
+ "@babel/env",
+ {
+ corejs: "3",
+ useBuiltIns: "usage",
+ },
+ ],
+ ],
};
};