Skip to content

Commit 79b6605

Browse files
committed
serverless: add python basic extension
1 parent cc06e19 commit 79b6605

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for license information.
4+
*--------------------------------------------------------------------------------------------*/
5+
6+
//@ts-check
7+
8+
'use strict';
9+
10+
const withDefaults = require('../shared.webpack.config');
11+
const path = require('path');
12+
13+
const clientConfig = withDefaults({
14+
target: 'webworker',
15+
context: __dirname,
16+
entry: {
17+
extension: './src/pythonMain.ts'
18+
},
19+
output: {
20+
filename: 'pythonMain.js'
21+
},
22+
performance: {
23+
hints: false
24+
},
25+
resolve: {
26+
alias: {
27+
'vscode-nls': path.resolve(__dirname, '../../build/polyfills/vscode-nls.js')
28+
}
29+
}
30+
});
31+
clientConfig.module.rules[0].use.shift(); // remove nls loader
32+
33+
module.exports = clientConfig;

extensions/python/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"engines": { "vscode": "*" },
99
"activationEvents": ["onLanguage:python"],
1010
"main": "./out/pythonMain",
11+
"browser": "./dist/pythonMain",
1112
"extensionKind": [ "ui", "workspace" ],
1213
"contributes": {
1314
"languages": [{

0 commit comments

Comments
 (0)