mirror of
https://github.com/convergencelabs/monaco-collab-ext.git
synced 2024-10-27 20:34:17 +00:00
36 lines
652 B
JavaScript
36 lines
652 B
JavaScript
module.exports = {
|
|
mode: 'production',
|
|
optimization: {
|
|
minimize: false
|
|
},
|
|
entry: "./src/ts/index.ts",
|
|
output: {
|
|
path: __dirname + "dist/lib",
|
|
library: "MonacoCollabExt",
|
|
libraryTarget: "umd",
|
|
umdNamedDefine: true,
|
|
filename: "monaco-collab-ext.js"
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
resolve: {
|
|
extensions: [".ts"],
|
|
},
|
|
plugins: [],
|
|
externals: {
|
|
"monaco-editor": {
|
|
amd: "vs/editor/editor.main",
|
|
commonjs: "monaco-editor",
|
|
commonjs2: "monaco-editor",
|
|
root: "monaco"
|
|
}
|
|
}
|
|
};
|