2020-06-11 16:32:14 +00:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
//@ts-check
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2020-06-25 21:21:56 +00:00
|
|
|
const withBrowserDefaults = require('../../shared.webpack.config').browser;
|
2020-06-11 16:32:14 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
2020-06-25 21:21:56 +00:00
|
|
|
module.exports = withBrowserDefaults({
|
2020-06-11 16:32:14 +00:00
|
|
|
context: __dirname,
|
|
|
|
entry: {
|
2022-12-05 22:49:27 +00:00
|
|
|
extension: './src/browser/jsonServerWorkerMain.ts',
|
2020-06-11 16:32:14 +00:00
|
|
|
},
|
|
|
|
output: {
|
|
|
|
filename: 'jsonServerMain.js',
|
|
|
|
path: path.join(__dirname, 'dist', 'browser'),
|
2021-07-08 19:41:03 +00:00
|
|
|
libraryTarget: 'var',
|
|
|
|
library: 'serverExportVar'
|
2020-06-11 16:32:14 +00:00
|
|
|
}
|
|
|
|
});
|