@tourmind-frontend/monitor-plugin-nuxt 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/dist/index.cjs +1 -1
  2. package/package.json +4 -4
package/dist/index.cjs CHANGED
@@ -47,7 +47,6 @@ var UploadSourceMapWebpackPlugin = class {
47
47
  // 兼容 webpack 4 / 5;类型留作 any 以避免把 webpack 拉入类型声明。
48
48
  apply(compiler) {
49
49
  const opts = this.options;
50
- compiler.options.devtool = "hidden-source-map";
51
50
  compiler.hooks.emit.tapPromise("MonitorUploadSourceMapPlugin", async (compilation) => {
52
51
  const files = [];
53
52
  const assets = compilation.assets || {};
@@ -106,6 +105,7 @@ function MonitorModule(options) {
106
105
  var _a;
107
106
  const enabled = (_a = options.uploadEnabled) != null ? _a : !isDev;
108
107
  if (!enabled || !isClient) return;
108
+ config.devtool = "hidden-source-map";
109
109
  config.plugins = config.plugins || [];
110
110
  config.plugins.push(
111
111
  new UploadSourceMapWebpackPlugin({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tourmind-frontend/monitor-plugin-nuxt",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Nuxt 2 module that captures runtime errors and uploads sourcemaps to a frontend-monitor server.",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",
@@ -17,13 +17,13 @@
17
17
  "node": ">=13"
18
18
  },
19
19
  "dependencies": {
20
- "@tourmind-frontend/monitor-tracking": "workspace:^",
21
20
  "axios": "^0.27.2",
22
21
  "form-data": "^3.0.0"
23
22
  },
24
23
  "peerDependencies": {
25
24
  "nuxt": ">=2.4.0",
26
- "vue": ">=2.5.0"
25
+ "vue": ">=2.5.0",
26
+ "@tourmind-frontend/monitor-tracking": "^1.0.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^20.0.0",
@@ -37,4 +37,4 @@
37
37
  "frontend-monitor",
38
38
  "error-tracking"
39
39
  ]
40
- }
40
+ }