@kissflow/lowcode-client-sdk 1.0.0 → 1.0.2-0.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/webpack.config.js DELETED
@@ -1,63 +0,0 @@
1
- const path = require("path");
2
- const webpack = require("webpack");
3
- const HtmlWebpackPlugin = require("html-webpack-plugin");
4
-
5
- let config = {
6
- devtool: "source-map",
7
- mode: "development",
8
- devServer: {
9
- contentBase: path.join(__dirname, "dist"),
10
- port: 3000,
11
- open: true
12
- },
13
- resolve: {
14
- extensions: [".ts", ".js"]
15
- },
16
- module: {
17
- rules: [
18
- {
19
- test: /\.ts?/,
20
- use: {
21
- loader: "ts-loader",
22
- options: {
23
- transpileOnly: true
24
- }
25
- },
26
- exclude: /node_modules/
27
- }
28
- ]
29
- },
30
- plugins: [
31
- new webpack.DefinePlugin({
32
- _BUILD: true
33
- }),
34
- new HtmlWebpackPlugin({
35
- template: "./index.html",
36
- filename: "index.html",
37
- inject: "body"
38
- })
39
- ]
40
- };
41
-
42
- let moduleLib = Object.assign({}, config, {
43
- experiments: {
44
- outputModule: true
45
- },
46
- entry: "./src/lowcode.sdk.ts",
47
- output: {
48
- filename: "kflowcode.sdk.module.js",
49
- path: path.resolve(__dirname, "dist"),
50
-
51
- library: {
52
- type: "module"
53
- }
54
- }
55
- });
56
- let commonLib = Object.assign({}, config, {
57
- entry: "./src/index.ts",
58
- output: {
59
- filename: "kflowcode.sdk.js",
60
- path: path.resolve(__dirname, "dist")
61
- }
62
- });
63
- module.exports = [moduleLib, commonLib];