Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const extension = require('./out/src/extension');

async function activate(ctx) {
return await extension.activate(ctx, perfStats);
return await extension.activate(ctx, perfStats, true /*ignoreBundle*/);
}

async function deactivate(ctx) {
Expand Down
73 changes: 51 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
},
"devDependencies": {
"@microsoft/eslint-config-azuretools": "^0.1.0",
"@microsoft/vscode-azext-dev": "^1.0.3",
"@microsoft/vscode-azext-dev": "^1.0.4",
"@types/fs-extra": "^8.1.1",
"@types/git-url-parse": "^9.0.0",
"@types/gulp": "^4.0.6",
Expand Down Expand Up @@ -352,6 +352,7 @@
"@microsoft/vscode-azext-azureutils": "^1.0.1",
"@microsoft/vscode-azext-utils": "^1.1.0",
"@microsoft/vscode-azureresources-api": "^2.0.2",
"buffer": "^6.0.3",
"dayjs": "^1.11.3",
"dotenv": "^16.0.0",
"fs-extra": "^8.1.0",
Expand Down
7 changes: 7 additions & 0 deletions src/browser/fs-extra.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

/* eslint-disable */
export const fse = {};
7 changes: 7 additions & 0 deletions src/browser/tar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

/* eslint-disable */
export const tar = {}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*--------------------------------------------------------------------------------------------*/
import { getResourceGroupFromId } from '@microsoft/vscode-azext-azureutils';
import { AzExtFsExtra, AzureWizardExecuteStep, nonNullValue } from '@microsoft/vscode-azext-utils';
import * as fse from 'fs-extra';
import * as tar from 'tar';
import { fse } from '../../../node/fs-extra';
import { tar } from '../../../node/tar';
import { createContainerRegistryManagementClient } from '../../../utils/azureClients';
import { IBuildImageInAzureContext } from './IBuildImageInAzureContext';

Expand Down
8 changes: 8 additions & 0 deletions src/node/fs-extra.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

/* eslint-disable */
import * as nodeFse from 'fs-extra';
export const fse = nodeFse;
8 changes: 8 additions & 0 deletions src/node/tar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

/* eslint-disable */
import * as nodeTar from 'tar';
export const tar = nodeTar;
12 changes: 11 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
const process = require('process');
const dev = require("@microsoft/vscode-azext-dev");
const webpack = require('webpack');
const path = require('path');

let DEBUG_WEBPACK = !/^(false|0)?$/i.test(process.env.DEBUG_WEBPACK || '');

Expand All @@ -32,6 +33,11 @@ let nodeConfig = dev.getDefaultWebpackConfig({
suppressCleanDistFolder: true
});

const nodeSrcPath = path.resolve(__dirname, 'src/node');

const alias = {};
alias[nodeSrcPath] = path.resolve(__dirname, 'src/browser');

let webConfig = dev.getDefaultWebpackConfig({
projectRoot: __dirname,
verbosity: DEBUG_WEBPACK ? 'debug' : 'normal',
Expand All @@ -46,10 +52,14 @@ let webConfig = dev.getDefaultWebpackConfig({
'../build/default/bufferutil': 'commonjs ../build/default/bufferutil',
},
target: 'webworker',
plugins: [new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
})],
suppressCleanDistFolder: true,
resolveFallbackAliases: {
'constants': false
}
},
alias
});

if (DEBUG_WEBPACK) {
Expand Down