Skip to content

Commit 7f1ab5c

Browse files
author
Astitv Shandilya
committed
Fix: Extension build issues during conda packaging
1 parent 2637c06 commit 7f1ab5c

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright Amazon.com Inc. or its affiliates. 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 withBrowserDefaults = require('../shared.webpack.config').browser;
11+
12+
module.exports = withBrowserDefaults({
13+
context: __dirname,
14+
entry: {
15+
extension: './src/extension.ts'
16+
},
17+
});
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*---------------------------------------------------------------------------------------------
2+
* Copyright Amazon.com Inc. or its affiliates. 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+
12+
module.exports = withDefaults({
13+
context: __dirname,
14+
resolve: {
15+
mainFields: ['module', 'main']
16+
},
17+
entry: {
18+
extension: './src/extension.ts',
19+
}
20+
});

patches/post-startup-notifications.patch

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4537,3 +4537,51 @@ Index: sagemaker-code-editor/vscode/extensions/post-startup-notifications/yarn.l
45374537
+ version "0.1.0"
45384538
+ resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
45394539
+ integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
4540+
Index: sagemaker-code-editor/vscode/extensions/post-startup-notifications/extension-browser.webpack.config.js
4541+
===================================================================
4542+
--- /dev/null
4543+
+++ sagemaker-code-editor/vscode/extensions/post-startup-notifications/extension-browser.webpack.config.js
4544+
@@ -0,0 +1,17 @@
4545+
+/*---------------------------------------------------------------------------------------------
4546+
+ * Copyright Amazon.com Inc. or its affiliates. All rights reserved.
4547+
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4548+
+ *--------------------------------------------------------------------------------------------*/
4549+
+
4550+
+//@ts-check
4551+
+
4552+
+'use strict';
4553+
+
4554+
+const withBrowserDefaults = require('../shared.webpack.config').browser;
4555+
+
4556+
+module.exports = withBrowserDefaults({
4557+
+ context: __dirname,
4558+
+ entry: {
4559+
+ extension: './src/extension.ts'
4560+
+ },
4561+
+});
4562+
Index: sagemaker-code-editor/vscode/extensions/post-startup-notifications/extension.webpack.config.js
4563+
===================================================================
4564+
--- /dev/null
4565+
+++ sagemaker-code-editor/vscode/extensions/post-startup-notifications/extension.webpack.config.js
4566+
@@ -0,0 +1,20 @@
4567+
+/*---------------------------------------------------------------------------------------------
4568+
+ * Copyright Amazon.com Inc. or its affiliates. All rights reserved.
4569+
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4570+
+ *--------------------------------------------------------------------------------------------*/
4571+
+
4572+
+//@ts-check
4573+
+
4574+
+'use strict';
4575+
+
4576+
+const withDefaults = require('../shared.webpack.config');
4577+
+
4578+
+module.exports = withDefaults({
4579+
+ context: __dirname,
4580+
+ resolve: {
4581+
+ mainFields: ['module', 'main']
4582+
+ },
4583+
+ entry: {
4584+
+ extension: './src/extension.ts',
4585+
+ }
4586+
+});
4587+
\ No newline at end of file

0 commit comments

Comments
 (0)