@tarojs/runner-utils 4.0.0-beta.86 → 4.0.0-beta.88

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/LICENSE CHANGED
@@ -154,8 +154,15 @@ See `/LICENSE` for details of the license.
154
154
 
155
155
  ==================
156
156
 
157
+ MIT (stencil-vue2-output-target):
158
+ The following files embed [stencil-vue2-output-target](https://github.com/diondree/stencil-vue2-output-target) MIT:
159
+ `/packages/taro-components-library-vue2/src/vue-component-lib/utils.ts`
160
+ See `/LICENSE` for details of the license.
161
+
162
+ ==================
163
+
157
164
  MIT (weui):
158
- The following files embed [weui](https://github.com/Tencent/weui) MIT:
165
+ The following files embed [stencil-vue2-output-target](https://github.com/Tencent/weui) MIT:
159
166
  `/packages/taro-components/src/components/*.scss`
160
167
  See `/LICENSE.txt` for details of the license.
161
168
 
@@ -165,10 +172,3 @@ Apache-2.0 (intersection-observer):
165
172
  The following files embed [intersection-observer](https://github.com/GoogleChromeLabs/intersection-observer) Apache-2.0:
166
173
  `/packages/taro-api/src/polyfill/intersection-observer.ts`
167
174
  See `/LICENSE.txt` for details of the license.
168
-
169
- ==================
170
-
171
- MIT (babel-plugin-jsx-dom-expressions):
172
- The following files embed [babel-plugin-jsx-dom-expressions](https://github.com/ryansolid/dom-expressions/blob/main/packages/babel-plugin-jsx-dom-expressions) MIT:
173
- `/packages/babel-plugin-transform-solid-jsx/src/*`
174
- See `/LICENSE` for details of the license.
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  ### `@tarojs/runner-utils`
2
2
 
3
- 暴露给 runner 的公用工具函数。
3
+ 暴露给 `@tarojs/mini-runner` 和 `@tarojs/webpack-runner` 的公用工具函数。
package/dist/scss.js CHANGED
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getSassLoaderOption = exports.getBundleContent = exports.getBundleResult = void 0;
13
- const path = require("node:path");
14
13
  const helper_1 = require("@tarojs/helper");
14
+ const path = require("path");
15
15
  const scss_bundle_1 = require("scss-bundle");
16
16
  /**
17
17
  * Return bundled sass content.
@@ -21,8 +21,8 @@ const scss_bundle_1 = require("scss-bundle");
21
21
  * Used for resolving tilde imports.
22
22
  * @returns Bundle result.
23
23
  */
24
- function getBundleResult(url_1) {
25
- return __awaiter(this, arguments, void 0, function* (url, projectDirectory = undefined) {
24
+ function getBundleResult(url, projectDirectory = undefined) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
26
  let bundler = new scss_bundle_1.Bundler();
27
27
  if (projectDirectory) {
28
28
  bundler = new scss_bundle_1.Bundler(undefined, projectDirectory);
@@ -39,8 +39,8 @@ exports.getBundleResult = getBundleResult;
39
39
  * Used for resolving tilde imports.
40
40
  * @returns Bundle result.
41
41
  */
42
- function getBundleContent(resource_1) {
43
- return __awaiter(this, arguments, void 0, function* (resource, projectDirectory = undefined) {
42
+ function getBundleContent(resource, projectDirectory = undefined) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
44
  let result = '';
45
45
  try {
46
46
  if (typeof resource === 'string') {
@@ -88,8 +88,8 @@ function checkPath(resource, rootDir) {
88
88
  * @param {BuildConfig} param0 Build config.
89
89
  * @returns Merged sass loader option.
90
90
  */
91
- function getSassLoaderOption(_a) {
92
- return __awaiter(this, arguments, void 0, function* ({ sass, sassLoaderOption }) {
91
+ function getSassLoaderOption({ sass, sassLoaderOption }) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
93
  sassLoaderOption = sassLoaderOption || {};
94
94
  let bundledContent = '';
95
95
  if (!sass) {
package/package.json CHANGED
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "name": "@tarojs/runner-utils",
3
- "version": "4.0.0-beta.86",
3
+ "version": "4.0.0-beta.88",
4
4
  "description": "Taro runner utilities.",
5
- "author": "O2Team",
6
- "license": "MIT",
7
5
  "main": "dist/index.js",
8
6
  "types": "types/index.d.ts",
9
7
  "files": [
@@ -17,19 +15,19 @@
17
15
  "keywords": [
18
16
  "taro"
19
17
  ],
20
- "engines": {
21
- "node": ">= 18"
22
- },
18
+ "author": "garfield550",
19
+ "license": "MIT",
23
20
  "dependencies": {
24
- "rollup": "^3.29.4",
25
- "scss-bundle": "^3.1.2",
26
- "@tarojs/helper": "4.0.0-beta.86"
21
+ "scss-bundle": "^3.0.2",
22
+ "@tarojs/helper": "4.0.0-beta.88",
23
+ "@tarojs/taro": "4.0.0-beta.88"
27
24
  },
28
- "devDependencies": {
29
- "@tarojs/taro": "4.0.0-beta.86"
25
+ "peerDependenciesMeta": {
26
+ "rollup": {
27
+ "optional": true
28
+ }
30
29
  },
31
30
  "scripts": {
32
- "prod": "pnpm run build",
33
31
  "build": "tsc",
34
32
  "dev": "tsc -w"
35
33
  }