mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
37 lines
No EOL
665 B
JavaScript
37 lines
No EOL
665 B
JavaScript
//@ts-check
|
|
|
|
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
/**@type {import('webpack').Configuration}*/
|
|
const config = {
|
|
target: 'node',
|
|
entry: './src/extension.ts',
|
|
output: {
|
|
path: path.resolve(__dirname, 'out'),
|
|
filename: 'extension.js',
|
|
libraryTarget: 'commonjs2'
|
|
},
|
|
devtool: 'source-map',
|
|
externals: {
|
|
vscode: 'commonjs vscode'
|
|
},
|
|
resolve: {
|
|
extensions: ['.ts', '.js']
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
exclude: /node_modules/,
|
|
use: [
|
|
{
|
|
loader: 'ts-loader'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
};
|
|
module.exports = config; |