@dcoder-x/next 0.1.2 → 0.1.4

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.
@@ -4,7 +4,8 @@ const plugin_shared_1 = require("@dcoder-x/plugin-shared");
4
4
  const loader = function (source) {
5
5
  const input = typeof source === 'string' ? source : source.toString('utf-8');
6
6
  const filePath = this.resourcePath;
7
- const result = (0, plugin_shared_1.injectClippyIds)(input, filePath);
7
+ const routePath = (0, plugin_shared_1.inferRouteFromFilePath)(filePath) ?? undefined;
8
+ const result = (0, plugin_shared_1.injectClippyIds)(input, filePath, routePath);
8
9
  try {
9
10
  // Attach metadata to the webpack module so the plugin can collect it later
10
11
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcoder-x/next",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "access": "public"
11
11
  },
12
12
  "dependencies": {
13
- "@dcoder-x/plugin-shared": "workspace:*"
13
+ "@dcoder-x/plugin-shared": "^0.1.5"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "next": ">=13.0.0",