ソースを参照

Stops `debug` node & browser ver getting bundled

main
Eric Amodio 1年前
コミット
9e1059b5ba
1個のファイルの変更5行の追加18行の削除
  1. +5
    -18
      webpack.config.js

+ 5
- 18
webpack.config.js ファイルの表示

@ -229,6 +229,11 @@ function getExtensionConfig(target, mode, env) {
'@env': path.resolve(__dirname, 'src', 'env', target === 'webworker' ? 'browser' : target),
// This dependency is very large, and isn't needed for our use-case
tr46: path.resolve(__dirname, 'patches', 'tr46.js'),
// Stupid dependency that is used by `http-proxy-agent`
debug:
target === 'webworker'
? path.resolve(__dirname, 'node_modules', 'debug', 'src', 'browser.js')
: path.resolve(__dirname, 'node_modules', 'debug', 'src', 'node.js'),
},
fallback:
target === 'webworker'
@ -642,24 +647,6 @@ class InlineChunkHtmlPlugin {
}
}
/**
* @param { string } configFile
* @returns { string }
*/
function resolveTSConfig(configFile) {
const result = spawnSync('yarn', ['tsc', `-p ${configFile}`, '--showConfig'], {
cwd: __dirname,
encoding: 'utf8',
shell: true,
});
const data = result.stdout;
const start = data.indexOf('{');
const end = data.lastIndexOf('}') + 1;
const json = JSON5.parse(data.substring(start, end));
return json;
}
const schema = {
type: 'object',
properties: {

読み込み中…
キャンセル
保存