MCPcopy Create free account
hub / github.com/CommE2E/comm / createBaseBrowserConfig

Function createBaseBrowserConfig

lib/webpack/shared.cjs:76–97  ·  view source on GitHub ↗
(baseConfig)

Source from the content-addressed store, hash-verified

74};
75
76function createBaseBrowserConfig(baseConfig) {
77 return {
78 ...baseConfig,
79 name: 'browser',
80 optimization: {
81 minimizer: [new TerserPlugin(), new CssMinimizerPlugin()],
82 },
83 plugins: [
84 ...(baseConfig.plugins ?? []),
85 ...sharedPlugins,
86 new webpack.ProvidePlugin({
87 Buffer: ['buffer', 'Buffer'],
88 }),
89 new CleanWebpackPlugin({
90 cleanOnceBeforeBuildPatterns: [],
91 }),
92 ],
93 node: {
94 global: true,
95 },
96 };
97}
98
99async function getConfigs() {
100 const [alchemySecret, walletConnectSecret, neynarSecret] = await Promise.all([

Callers 2

createProdBrowserConfigFunction · 0.85
createDevBrowserConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected