-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version independent Webpack package (#91)
* Prepare version independent Webpack package * Implement plugin-webpack/index.cjs * Add README.md * Add package to root README.md
- Loading branch information
1 parent
6a5d02d
commit d6572b4
Showing
7 changed files
with
7,928 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Version independent Webpack plugin for `@runtime-type-inspector/transpiler`. | ||
|
||
Installation: | ||
|
||
```sh | ||
npm install @runtime-type-inspector/plugin-webpack | ||
``` | ||
|
||
Example of integration into your build script: | ||
|
||
- https://github.com/xenova/transformers.js/pull/409 | ||
|
||
Have fun! If you run into any issues, please open an issue at https://github.com/kungfooman/RuntimeTypeInspector.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const {version} = require('webpack'); | ||
if (parseInt(version) <= 4) { | ||
module.exports = require('@runtime-type-inspector/plugin-webpack4'); | ||
} else { | ||
module.exports = require('@runtime-type-inspector/plugin-webpack5'); | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
{ | ||
"name": "@runtime-type-inspector/plugin-webpack", | ||
"version": "1.0.0", | ||
"description": "Webpack plugin for https://runtimetypeinspector.org/", | ||
"main": "index.cjs", | ||
"author": "Hermann Rolfes (kungfooman)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@runtime-type-inspector/transpiler": "^2.1.1" | ||
"@runtime-type-inspector/plugin-webpack4": "latest", | ||
"@runtime-type-inspector/plugin-webpack5": "latest" | ||
} | ||
} |