update browser webpack
parent
fc51efb871
commit
a5de48c8ea
|
@ -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;
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue