update browser webpack

pull/233776/head
Megan Rogge 2024-11-18 16:03:14 -05:00
parent fc51efb871
commit a5de48c8ea
No known key found for this signature in database
GPG Key ID: B8E497F5C2C8EDE8
2 changed files with 5 additions and 9 deletions

View File

@ -9,13 +9,13 @@
const withBrowserDefaults = require('../shared.webpack.config').browser;
const config = withBrowserDefaults({
module.exports = withBrowserDefaults({
context: __dirname,
entry: {
extension: './src/npmBrowserMain.ts'
extension: './src/terminalSuggestMain.ts'
},
output: {
filename: 'npmBrowserMain.js'
filename: 'terminalSuggestMain.js'
},
resolve: {
fallback: {
@ -23,5 +23,3 @@ const config = withBrowserDefaults({
}
}
});
module.exports = config;

View File

@ -6,17 +6,15 @@
//@ts-check
'use strict';
const path = require('path');
const withDefaults = require('../shared.webpack.config');
const webpack = require('webpack');
module.exports = withDefaults({
context: __dirname,
entry: {
extension: './src/terminalSuggestMain.ts',
extension: './src/terminalSuggestMain.ts'
},
output: {
filename: 'terminalSuggestMain.js',
filename: 'terminalSuggestMain.js'
},
resolve: {
mainFields: ['module', 'main'],