@runtime-type-inspector/plugin-webpack 1.0.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.
Files changed (3) hide show
  1. package/README.md +13 -0
  2. package/index.cjs +6 -0
  3. package/package.json +12 -0
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ Version independent Webpack plugin for `@runtime-type-inspector/transpiler`.
2
+
3
+ Installation:
4
+
5
+ ```sh
6
+ npm install @runtime-type-inspector/plugin-webpack
7
+ ```
8
+
9
+ Example of integration into your build script:
10
+
11
+ - https://github.com/xenova/transformers.js/pull/409
12
+
13
+ Have fun! If you run into any issues, please open an issue at https://github.com/kungfooman/RuntimeTypeInspector.js
package/index.cjs ADDED
@@ -0,0 +1,6 @@
1
+ const {version} = require('webpack');
2
+ if (parseInt(version) <= 4) {
3
+ module.exports = require('@runtime-type-inspector/plugin-webpack4');
4
+ } else {
5
+ module.exports = require('@runtime-type-inspector/plugin-webpack5');
6
+ }
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@runtime-type-inspector/plugin-webpack",
3
+ "version": "1.0.0",
4
+ "description": "Webpack plugin for https://runtimetypeinspector.org/",
5
+ "main": "index.cjs",
6
+ "author": "Hermann Rolfes (kungfooman)",
7
+ "license": "MIT",
8
+ "dependencies": {
9
+ "@runtime-type-inspector/plugin-webpack4": "latest",
10
+ "@runtime-type-inspector/plugin-webpack5": "latest"
11
+ }
12
+ }