Set up monorepo workspace
This commit is contained in:
parent
ae3acb9e1e
commit
eb88d35c2e
10 changed files with 207 additions and 26 deletions
49
sync-client/webpack.config.js
Normal file
49
sync-client/webpack.config.js
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
const path = require("path");
|
||||
|
||||
module.exports = (_env, _argv) => ({
|
||||
entry: "./src/index.ts",
|
||||
devtool: "source-map",
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: [
|
||||
{
|
||||
loader: "ts-loader",
|
||||
options: {
|
||||
compilerOptions: {
|
||||
declaration: true,
|
||||
declarationDir: "./dist/types"
|
||||
},
|
||||
transpileOnly: false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
test: /\.wasm$/,
|
||||
type: "asset/inline"
|
||||
}
|
||||
]
|
||||
},
|
||||
optimization: {
|
||||
minimize: false
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".js"],
|
||||
alias: {
|
||||
root: __dirname,
|
||||
src: path.resolve(__dirname, "src")
|
||||
}
|
||||
},
|
||||
output: {
|
||||
clean: true,
|
||||
filename: "index.js",
|
||||
library: {
|
||||
name: "SyncClient",
|
||||
type: "umd"
|
||||
},
|
||||
globalObject: "this",
|
||||
path: path.resolve(__dirname, "dist")
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue