@uni_toolkit/unplugin-json-optimization 0.0.16 → 0.0.17-alpha.1775970596430

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 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
@@ -2,7 +2,7 @@ import {
2
2
  src_default,
3
3
  unplugin,
4
4
  unpluginFactory
5
- } from "./chunk-A5XPZGFI.js";
5
+ } from "./chunk-JXHP6A5L.js";
6
6
  export {
7
7
  src_default as default,
8
8
  unplugin,
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-A5XPZGFI.js";
3
+ } from "./chunk-JXHP6A5L.js";
4
4
 
5
5
  // src/vite.ts
6
6
  import { createVitePlugin } from "unplugin";
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpluginFactory
3
- } from "./chunk-A5XPZGFI.js";
3
+ } from "./chunk-JXHP6A5L.js";
4
4
 
5
5
  // src/webpack.ts
6
6
  import { createWebpackPlugin } from "unplugin";
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.16",
4
+ "version": "0.0.17-alpha.1775970596430",
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);