Skip to content

Commit 5ce4755

Browse files
committed
fix imba (move folders)
1 parent bcee68b commit 5ce4755

File tree

10 files changed

+2984
-0
lines changed

10 files changed

+2984
-0
lines changed

frameworks/keyed/imba/package-lock.json

Lines changed: 1410 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/imba/package.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "js-framework-benchmark-imba",
3+
"version": "1.0.1",
4+
"description": "Imba demo",
5+
"main": "index.js",
6+
"js-framework-benchmark": {
7+
"frameworkVersionFromPackage": "imba",
8+
"frameworkHomeURL": "https://imba.io/"
9+
},
10+
"scripts": {
11+
"build-dev": "webpack --watch",
12+
"build-prod": "webpack --mode=production"
13+
},
14+
"keywords": [
15+
"imba",
16+
"webpack"
17+
],
18+
"author": "Allain Lalonde",
19+
"license": "Apache-2.0",
20+
"homepage": "https://github.com/allain/js-framework-benchmark",
21+
"repository": {
22+
"type": "git",
23+
"url": "https://github.com/allain/js-framework-benchmark.git"
24+
},
25+
"devDependencies": {
26+
"loader-utils": "^1.4.2",
27+
"terser-webpack-plugin": "^5.3.9",
28+
"webpack": "^5.88.2",
29+
"webpack-cli": "^5.1.4"
30+
},
31+
"dependencies": {
32+
"imba": "^1.5.2"
33+
}
34+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
const path = require("path");
2+
const TerserPlugin = require("terser-webpack-plugin");
3+
4+
module.exports = (env, argv) => {
5+
const isProduction = argv.mode === "production";
6+
7+
/** @type {import("webpack").Configuration} */
8+
const config = {
9+
mode: isProduction ? "production" : "development",
10+
entry: {
11+
main: path.join(__dirname, "src", "main.imba"),
12+
},
13+
output: {
14+
path: path.join(__dirname, "dist"),
15+
filename: "[name].js",
16+
},
17+
resolve: {
18+
extensions: [".imba"],
19+
},
20+
module: {
21+
rules: [
22+
{
23+
test: /\.imba$/,
24+
loader: "imba/loader.js",
25+
},
26+
],
27+
},
28+
29+
optimization: {
30+
minimize: isProduction,
31+
minimizer: [
32+
new TerserPlugin({
33+
parallel: true,
34+
terserOptions: {
35+
compress: {
36+
ecma: 5,
37+
comparisons: true,
38+
},
39+
mangle: {
40+
safari10: true,
41+
},
42+
},
43+
}),
44+
],
45+
},
46+
};
47+
return config;
48+
};

0 commit comments

Comments
 (0)