@runtime-type-inspector/plugin-webpack5 1.2.2 → 1.2.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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.cjs +5 -2
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- WebPack 5 plugin for `@runtime-type-inspector/transpiler`.
1
+ Webpack 5 plugin for `@runtime-type-inspector/transpiler`.
2
2
 
3
3
  Installation:
4
4
 
@@ -8,6 +8,6 @@ npm install @runtime-type-inspector/plugin-webpack5
8
8
 
9
9
  Example of integration into your build script:
10
10
 
11
- - todo open and link to transformers.js PR
11
+ - https://github.com/xenova/transformers.js/pull/409
12
12
 
13
13
  Have fun! If you run into any issues, please open an issue at https://github.com/kungfooman/RuntimeTypeInspector.js
package/index.cjs CHANGED
@@ -1,9 +1,12 @@
1
1
  const {Compilation, Compiler} = require('webpack');
2
2
  /**
3
- * @typedef RuntimeTypeInspectorPluginOptions
3
+ * @typedef OptionsProps
4
4
  * @property {RegExp} [test] - Test for file extensions.
5
5
  * @property {RegExp} [exclude] - Test for exclusion.
6
6
  */
7
+ /**
8
+ * @typedef {OptionsProps & import('@runtime-type-inspector/transpiler').Options} Options
9
+ */
7
10
  class RuntimeTypeInspectorPlugin {
8
11
  static pluginName = 'RuntimeTypeInspectorPlugin';
9
12
  // Default options
@@ -14,7 +17,7 @@ class RuntimeTypeInspectorPlugin {
14
17
  exclude: /node_modules/
15
18
  };
16
19
  /**
17
- * @param {RuntimeTypeInspectorPluginOptions} options - The options.
20
+ * @param {Options} options - The options.
18
21
  */
19
22
  constructor(options) {
20
23
  Object.assign(this.options, options);
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@runtime-type-inspector/plugin-webpack5",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Webpack 5 plugin for https://runtimetypeinspector.org/",
5
5
  "main": "index.cjs",
6
6
  "author": "Hermann Rolfes (kungfooman)",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@runtime-type-inspector/transpiler": "^2.2.2",
9
+ "@runtime-type-inspector/transpiler": "^2.2.5",
10
10
  "loader-utils": "^2.0.4",
11
11
  "webpack": "^5.89.0"
12
12
  }