@uni_toolkit/unplugin-json-optimization 0.0.16 → 0.0.17-alpha.1775978188357
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/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/vite.cjs +2 -2
- package/dist/vite.js +1 -1
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.js +1 -1
- package/package.json +1 -1
- package/dist/{chunk-A5XPZGFI.js → chunk-JXHP6A5L.js} +2 -2
package/dist/index.cjs
CHANGED
|
@@ -35,9 +35,9 @@ __export(src_exports, {
|
|
|
35
35
|
unpluginFactory: () => unpluginFactory
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(src_exports);
|
|
38
|
-
var import_unplugin = require("unplugin");
|
|
39
|
-
var import_pluginutils = require("@rollup/pluginutils");
|
|
40
38
|
var import_node_path = __toESM(require("path"), 1);
|
|
39
|
+
var import_pluginutils = require("@rollup/pluginutils");
|
|
40
|
+
var import_unplugin = require("unplugin");
|
|
41
41
|
function replaceRequirePaths(code, pathMapper) {
|
|
42
42
|
return code.replace(/require\s*\(\s*(["'])([^"']+)\1\s*\)/g, (match, quote, path2) => {
|
|
43
43
|
const newPath = pathMapper(path2);
|
package/dist/index.js
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -36,9 +36,9 @@ module.exports = __toCommonJS(vite_exports);
|
|
|
36
36
|
var import_unplugin2 = require("unplugin");
|
|
37
37
|
|
|
38
38
|
// src/index.ts
|
|
39
|
-
var import_unplugin = require("unplugin");
|
|
40
|
-
var import_pluginutils = require("@rollup/pluginutils");
|
|
41
39
|
var import_node_path = __toESM(require("path"), 1);
|
|
40
|
+
var import_pluginutils = require("@rollup/pluginutils");
|
|
41
|
+
var import_unplugin = require("unplugin");
|
|
42
42
|
function replaceRequirePaths(code, pathMapper) {
|
|
43
43
|
return code.replace(/require\s*\(\s*(["'])([^"']+)\1\s*\)/g, (match, quote, path2) => {
|
|
44
44
|
const newPath = pathMapper(path2);
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -36,9 +36,9 @@ module.exports = __toCommonJS(webpack_exports);
|
|
|
36
36
|
var import_unplugin2 = require("unplugin");
|
|
37
37
|
|
|
38
38
|
// src/index.ts
|
|
39
|
-
var import_unplugin = require("unplugin");
|
|
40
|
-
var import_pluginutils = require("@rollup/pluginutils");
|
|
41
39
|
var import_node_path = __toESM(require("path"), 1);
|
|
40
|
+
var import_pluginutils = require("@rollup/pluginutils");
|
|
41
|
+
var import_unplugin = require("unplugin");
|
|
42
42
|
function replaceRequirePaths(code, pathMapper) {
|
|
43
43
|
return code.replace(/require\s*\(\s*(["'])([^"']+)\1\s*\)/g, (match, quote, path2) => {
|
|
44
44
|
const newPath = pathMapper(path2);
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni_toolkit/unplugin-json-optimization",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.17-alpha.1775978188357",
|
|
5
5
|
"description": "A plugin to optimize json files generation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/uni-toolkit/uni-toolkit/tree/main/packages/unplugin-json-optimization",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
import { createUnplugin } from "unplugin";
|
|
3
|
-
import { createFilter } from "@rollup/pluginutils";
|
|
4
2
|
import path from "path";
|
|
3
|
+
import { createFilter } from "@rollup/pluginutils";
|
|
4
|
+
import { createUnplugin } from "unplugin";
|
|
5
5
|
function replaceRequirePaths(code, pathMapper) {
|
|
6
6
|
return code.replace(/require\s*\(\s*(["'])([^"']+)\1\s*\)/g, (match, quote, path2) => {
|
|
7
7
|
const newPath = pathMapper(path2);
|