Skip to content

Commit

Permalink
remove unused code; fix smokehouse bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Jul 10, 2023
1 parent c2531f4 commit 133f3c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build/build-lightrider-bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ async function buildReportGenerator() {
plugins.umd('ReportGenerator'),
plugins.replaceModules({
[`${LH_ROOT}/report/generator/flow-report-assets.js`]: 'export const flowReportAssets = {}',
// 'fs': 'export default {}',
// 'module': 'export function createRequire(){}',
// 'path': 'export default {}',
// 'url': 'export default {}',
}),
plugins.bulkLoader([
plugins.partialLoaders.inlineFs({verbose: Boolean(process.env.DEBUG)}),
Expand All @@ -65,7 +61,6 @@ async function buildStaticServerBundle() {
plugins.partialLoaders.rmGetModuleDirectory,
]),
plugins.ignoreBuiltins(),
// rollupPlugins.nodeResolve(), // TODO ?
],
external: ['mime-types', 'glob'],
});
Expand Down
2 changes: 2 additions & 0 deletions build/build-smokehouse-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import esbuild from 'esbuild';

import * as plugins from './esbuild-plugins.js';
import {LH_ROOT} from '../root.js';
import {nodeModulesPolyfillPlugin} from '../third-party/esbuild-plugins-polyfills/esbuild-polyfills.js';

const distDir = `${LH_ROOT}/dist`;
const bundleOutFile = `${distDir}/smokehouse-bundle.js`;
Expand Down Expand Up @@ -38,6 +39,7 @@ async function main() {
plugins.partialLoaders.inlineFs({verbose: Boolean(process.env.DEBUG)}),
plugins.partialLoaders.rmGetModuleDirectory,
]),
nodeModulesPolyfillPlugin(),
plugins.ignoreBuiltins(),
],
});
Expand Down

0 comments on commit 133f3c7

Please sign in to comment.