@sepveneto/plugin-mp-router-view 0.3.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.
@@ -0,0 +1,6 @@
1
+ import * as webpack from 'webpack';
2
+ import { Options } from './types.js';
3
+
4
+ declare function export_default(this: webpack.LoaderContext<Options>, code: string): string;
5
+
6
+ export { export_default as default };
@@ -0,0 +1,15 @@
1
+ import {
2
+ getPages,
3
+ transform
4
+ } from "./chunk-NN5J6VGF.js";
5
+
6
+ // src/webpack.ts
7
+ function webpack_default(code) {
8
+ var _a, _b;
9
+ const { log = "error", collect = true } = (_b = (_a = this.getOptions) == null ? void 0 : _a.call(this)) != null ? _b : this.query;
10
+ const entryPages = getPages(collect);
11
+ return transform(this.resourcePath, code, entryPages, log);
12
+ }
13
+ export {
14
+ webpack_default as default
15
+ };
package/package.json ADDED
@@ -0,0 +1,107 @@
1
+ {
2
+ "name": "@sepveneto/plugin-mp-router-view",
3
+ "type": "module",
4
+ "version": "0.3.1",
5
+ "packageManager": "pnpm@7.1.1",
6
+ "description": "Register global imports on demand for Vite and Webpack",
7
+ "license": "MIT",
8
+ "homepage": "https://github.com/antfu/unplugin-starter#readme",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/antfu/unplugin-starter.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/antfu/unplugin-starter/issues"
15
+ },
16
+ "keywords": [
17
+ "unplugin",
18
+ "vite",
19
+ "webpack",
20
+ "rollup",
21
+ "transform"
22
+ ],
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/webpack.d.ts",
26
+ "require": "./dist/webpack.cjs",
27
+ "import": "./dist/webpack.js"
28
+ },
29
+ "./vite": {
30
+ "types": "./dist/vite.d.ts",
31
+ "require": "./dist/vite.cjs",
32
+ "import": "./dist/vite.js"
33
+ },
34
+ "./rollup": {
35
+ "types": "./dist/rollup.d.ts",
36
+ "require": "./dist/rollup.cjs",
37
+ "import": "./dist/rollup.js"
38
+ },
39
+ "./esbuild": {
40
+ "types": "./dist/esbuild.d.ts",
41
+ "require": "./dist/esbuild.cjs",
42
+ "import": "./dist/esbuild.js"
43
+ },
44
+ "./nuxt": {
45
+ "types": "./dist/nuxt.d.ts",
46
+ "require": "./dist/nuxt.cjs",
47
+ "import": "./dist/nuxt.js"
48
+ },
49
+ "./types": {
50
+ "types": "./dist/types.d.ts",
51
+ "require": "./dist/types.cjs",
52
+ "import": "./dist/types.js"
53
+ },
54
+ "./*": "./*"
55
+ },
56
+ "main": "dist/webpack.cjs",
57
+ "module": "dist/webpack.js",
58
+ "types": "dist/webpack.d.ts",
59
+ "typesVersions": {
60
+ "*": {
61
+ "*": [
62
+ "./dist/*",
63
+ "./*"
64
+ ]
65
+ }
66
+ },
67
+ "files": [
68
+ "dist"
69
+ ],
70
+ "dependencies": {
71
+ "colors": "^1.4.0",
72
+ "jsonc-parser": "^3.2.0",
73
+ "node-html-parser": "^6.1.4",
74
+ "debug": "^4.3.4",
75
+ "unplugin": "^1.0.1"
76
+ },
77
+ "devDependencies": {
78
+ "@antfu/eslint-config": "^0.33.1",
79
+ "@dcloudio/types": "^3.0.17",
80
+ "@types/debug": "^4.1.7",
81
+ "@types/node": "^18.11.13",
82
+ "bumpp": "^8.2.1",
83
+ "chalk": "^5.2.0",
84
+ "eslint": "^8.29.0",
85
+ "esno": "^0.16.3",
86
+ "fast-glob": "^3.2.12",
87
+ "nodemon": "^2.0.20",
88
+ "rimraf": "^3.0.2",
89
+ "rollup": "^3.7.3",
90
+ "tsup": "^6.5.0",
91
+ "typescript": "^4.9.4",
92
+ "vite": "^4.0.0",
93
+ "vitest": "^0.25.7",
94
+ "webpack": "^5.75.0"
95
+ },
96
+ "scripts": {
97
+ "build": "tsup",
98
+ "dev": "tsup --watch src",
99
+ "build:fix": "esno scripts/postbuild.ts",
100
+ "lint": "eslint .",
101
+ "play": "npm -C playground run dev",
102
+ "play:v2": "npm -C playground-v2 run dev:mp-weixin",
103
+ "release": "bumpp",
104
+ "start": "esno src/index.ts",
105
+ "test": "vitest"
106
+ }
107
+ }