@wyw-in-js/webpack-loader 0.1.1 → 0.2.1

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/README.md +34 -0
  2. package/package.json +7 -7
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @wyw-in-js/webpack
2
+
3
+ The package contains WyW-in-JS loader for [Webpack](https://webpack.js.org/).
4
+
5
+ ## Installation
6
+
7
+ ```shell
8
+ # npm
9
+ npm i -D @wyw-in-js/webpack-loader
10
+ # yarn
11
+ yarn add --dev @wyw-in-js/webpack-loader
12
+ # pnpm
13
+ pnpm add -D @wyw-in-js/webpack-loader
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ To use the loader with Webpack, please add `@wyw-in-js/webpack-loader` under `module.rules`:
19
+
20
+ ```js
21
+ module.exports = {
22
+ test: /\.js$/,
23
+ use: [
24
+ {
25
+ loader: '@wyw-in-js/webpack-loader',
26
+ options: {
27
+ sourceMap: process.env.NODE_ENV !== 'production',
28
+ },
29
+ },
30
+ ],
31
+ };
32
+ ```
33
+
34
+ To get details about supported options by the plugin, please check [documentation](https://wyw-in-js.dev/bundlers/webpack).
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@wyw-in-js/webpack-loader",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "dependencies": {
5
- "@wyw-in-js/shared": "0.1.1",
6
- "@wyw-in-js/transform": "0.1.1"
5
+ "@wyw-in-js/shared": "0.2.1",
6
+ "@wyw-in-js/transform": "0.2.1"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@types/node": "^16.18.55",
10
10
  "source-map": "^0.7.4",
11
11
  "webpack": "^5.76.0",
12
- "@wyw-in-js/babel-config": "0.1.1",
13
- "@wyw-in-js/eslint-config": "0.1.1",
14
- "@wyw-in-js/jest-preset": "0.1.1",
15
- "@wyw-in-js/ts-config": "0.1.1"
12
+ "@wyw-in-js/babel-config": "0.2.1",
13
+ "@wyw-in-js/eslint-config": "0.2.1",
14
+ "@wyw-in-js/jest-preset": "0.2.1",
15
+ "@wyw-in-js/ts-config": "0.2.1"
16
16
  },
17
17
  "engines": {
18
18
  "node": ">=16.0.0"