@grafana/create-plugin 5.2.5-canary.1066.6c130d1.0 → 5.2.5-canary.1069.0322478f.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "5.2.5-canary.1066.6c130d1.0",
3
+ "version": "5.2.5-canary.1069.0322478f.0",
4
4
  "repository": {
5
5
  "directory": "packages/create-plugin",
6
6
  "url": "https://github.com/grafana/plugin-tools"
@@ -87,5 +87,5 @@
87
87
  "engines": {
88
88
  "node": ">=20"
89
89
  },
90
- "gitHead": "6c130d182627fea95e11807fc88301359c1b446a"
90
+ "gitHead": "0322478f6590ff617fbea6cc5dc817db17a49acc"
91
91
  }
@@ -22,7 +22,7 @@ const pluginJson = getPluginJson();
22
22
  const cpVersion = getCPConfigVersion();
23
23
 
24
24
  const virtualPublicPath = new VirtualModulesPlugin({
25
- 'node_modules/grafana-public-path.js': `
25
+ 'virtual_modules/grafana-public-path.js': `
26
26
  import amdMetaModule from 'amd-module';
27
27
 
28
28
  __webpack_public_path__ =
@@ -162,9 +162,6 @@ const config = async (env): Promise<Configuration> => {
162
162
  format: {
163
163
  comments: (_, { type, value }) => type === 'comment2' && value.trim().startsWith('[create-plugin]'),
164
164
  },
165
- compress: {
166
- drop_console: Boolean(env.production),
167
- }
168
165
  },
169
166
  }),
170
167
  ],
@@ -249,7 +246,7 @@ const config = async (env): Promise<Configuration> => {
249
246
  resolve: {
250
247
  extensions: ['.js', '.jsx', '.ts', '.tsx'],
251
248
  // handle resolving "rootDir" paths
252
- modules: [path.resolve(process.cwd(), 'src'), 'node_modules'],
249
+ modules: [path.resolve(process.cwd(), 'src'), 'node_modules', 'virtual_modules'],
253
250
  unsafeCache: true,
254
251
  },
255
252
  };
@@ -51,6 +51,7 @@
51
51
  "sass-loader": "13.3.1",
52
52
  "style-loader": "3.3.3",
53
53
  "swc-loader": "^0.2.3",
54
+ "terser-webpack-plugin": "^5.3.10",
54
55
  "ts-node": "^10.9.1",
55
56
  "tsconfig-paths": "^4.2.0",
56
57
  "typescript": "4.8.4",