@ray-js/builder-mp 1.5.0-beta.12 → 1.5.0
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.
@@ -12,8 +12,8 @@ function babelConfig(api) {
|
|
12
12
|
plugins: [
|
13
13
|
require.resolve('babel-plugin-minify-dead-code-elimination'),
|
14
14
|
require.resolve('babel-plugin-transform-prune-unused-imports'),
|
15
|
-
[require.resolve('@babel/plugin-
|
16
|
-
[require.resolve('@babel/plugin-
|
15
|
+
[require.resolve('@babel/plugin-transform-private-property-in-object'), { loose: true }],
|
16
|
+
[require.resolve('@babel/plugin-transform-private-methods'), { loose: true }],
|
17
17
|
],
|
18
18
|
};
|
19
19
|
}
|
@@ -25,6 +25,12 @@ exports.default = {
|
|
25
25
|
name: 'mini-app-module-resolve',
|
26
26
|
configWebpack(context) {
|
27
27
|
const { config } = context;
|
28
|
+
// --no-sourcemap 时不生成 sourcemap
|
29
|
+
// minipack 在 1.0.0 之后使用了 esbuild 存在 sourcemap 过长的问题
|
30
|
+
// 可通过 --no-sourcemap 关闭 sourcemap
|
31
|
+
if (builder_1.builder.options.sourcemap === false) {
|
32
|
+
config.devtool(false);
|
33
|
+
}
|
28
34
|
config.watch(true);
|
29
35
|
config.watchOptions({
|
30
36
|
ignored: /\.rjs$/i,
|
package/lib/ray-core.js
CHANGED
@@ -52,7 +52,7 @@ function getRayCoreOptions() {
|
|
52
52
|
const api = builder_1.builder.api;
|
53
53
|
// @ts-ignore
|
54
54
|
const plugins = innerPlugins.concat(api.plugins);
|
55
|
-
const remaxBuildConfig = Object.assign(Object.assign({}, remaxDefaultOptions), { UNSAFE_wechatTemplateDepth: Object.assign(UNSAFE_wechatTemplateDepth, defaultTemplateDepth), compressTemplate: mini, pxToRpx: false, minimize: mini, analyze,
|
55
|
+
const remaxBuildConfig = Object.assign(Object.assign({}, remaxDefaultOptions), { UNSAFE_wechatTemplateDepth: Object.assign(UNSAFE_wechatTemplateDepth, defaultTemplateDepth, api.config.UNSAFE_wechatTemplateDepth), compressTemplate: mini, pxToRpx: false, minimize: mini, analyze,
|
56
56
|
cwd, loglevel: 'warn', rootDir: source, target, output: path_1.default.relative(cwd, output), watch,
|
57
57
|
plugins,
|
58
58
|
blended });
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/builder-mp",
|
3
|
-
"version": "1.5.0
|
3
|
+
"version": "1.5.0",
|
4
4
|
"description": "Ray builder for mini program",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -24,19 +24,19 @@
|
|
24
24
|
"watch": "tsc -p ./tsconfig.build.json --watch"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@babel/plugin-
|
28
|
-
"@babel/plugin-
|
29
|
-
"@babel/template": "^7.
|
30
|
-
"@babel/traverse": "^7.
|
31
|
-
"@babel/types": "^7.
|
32
|
-
"@ray-core/babel-preset-remax": "^0.
|
33
|
-
"@ray-core/build-store": "^0.
|
34
|
-
"@ray-core/cli": "^0.
|
35
|
-
"@ray-core/ray": "^0.
|
36
|
-
"@ray-js/adapter": "
|
27
|
+
"@babel/plugin-transform-private-methods": "^7.24.1",
|
28
|
+
"@babel/plugin-transform-private-property-in-object": "^7.24.1",
|
29
|
+
"@babel/template": "^7.24.0",
|
30
|
+
"@babel/traverse": "^7.24.1",
|
31
|
+
"@babel/types": "^7.24.0",
|
32
|
+
"@ray-core/babel-preset-remax": "^0.4.0",
|
33
|
+
"@ray-core/build-store": "^0.4.0",
|
34
|
+
"@ray-core/cli": "^0.4.0",
|
35
|
+
"@ray-core/ray": "^0.4.0",
|
36
|
+
"@ray-js/adapter": "1.5.0",
|
37
37
|
"@ray-js/rjs-for-wechat": "^0.0.3",
|
38
|
-
"@ray-js/shared": "
|
39
|
-
"@ray-js/types": "
|
38
|
+
"@ray-js/shared": "1.5.0",
|
39
|
+
"@ray-js/types": "1.5.0",
|
40
40
|
"babel-loader": "^8.3.0",
|
41
41
|
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
|
42
42
|
"babel-plugin-transform-prune-unused-imports": "^1.0.1",
|
@@ -44,26 +44,27 @@
|
|
44
44
|
"colors": "1.4.0",
|
45
45
|
"fs-extra": "^10.1.0",
|
46
46
|
"hash-replace": "^1.0.5",
|
47
|
+
"less-loader": "^7.3.0",
|
47
48
|
"postcss-units-transform": "^1.1.0",
|
48
49
|
"pretty-bytes": "^5.6.0",
|
49
50
|
"react": "^17.0.2",
|
50
51
|
"slash": "^3.0.0",
|
51
|
-
"webpack": "^5.
|
52
|
+
"webpack": "^5.91.0",
|
52
53
|
"webpack-chain": "^6.5.1",
|
53
54
|
"webpack-virtual-modules": "^0.4.6"
|
54
55
|
},
|
55
56
|
"devDependencies": {
|
56
|
-
"@ray-core/types": "^0.
|
57
|
-
"@types/jest": "^
|
58
|
-
"@types/node": "^20.
|
57
|
+
"@ray-core/types": "^0.4.0",
|
58
|
+
"@types/jest": "^29.5.12",
|
59
|
+
"@types/node": "^20.11.30",
|
59
60
|
"babel-plugin-tester": "^10.1.0",
|
60
|
-
"jest": "^
|
61
|
-
"ts-jest": "^
|
61
|
+
"jest": "^29.7.0",
|
62
|
+
"ts-jest": "^29.1.2",
|
62
63
|
"typescript": "^4.9.5"
|
63
64
|
},
|
64
65
|
"publishConfig": {
|
65
66
|
"access": "public",
|
66
67
|
"registry": "https://registry.npmjs.org"
|
67
68
|
},
|
68
|
-
"gitHead": "
|
69
|
+
"gitHead": "acb0b960e4f0cda492b34c950bf9cd8d5b27ec8a"
|
69
70
|
}
|