Files
react/compiler/packages/eslint-browser/webpack.config.js
T
lauren a0dc166991 [rfc] Remove top level forget directory
Sorry about the thrash in advance! This removes the top level `forget` directory 
which adds unnecessary nesting to our repo 

Hopefully everything still works
2023-08-22 15:04:54 -04:00

30 lines
791 B
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
const path = require("path");
const NodePolyfillWebpackPlugin = require("node-polyfill-webpack-plugin");
// This configuration is adapted from ESLint playground:
// https://github.com/eslint/playground/blob/f3b1f78cc1c06dadfe7bb50c6c0f913c0d23670d/webpack.config.js
/** @type {import("webpack").Configuration} */
module.exports = {
entry: "./src/index.js",
plugins: [new NodePolyfillWebpackPlugin()],
output: {
library: {
name: "index",
type: "commonjs2",
},
},
resolve: {
extensions: [".js"],
mainFields: ["browser", "main", "module"],
},
};