@leofcoin/chain 1.0.20 → 1.0.21

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/package.json +2 -1
  2. package/webpack.config.js +15 -0
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc/4.0/\"><img alt=\"Creative Commons Licence\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-nc/4.0/88x31.png\" /></a><br />This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc/4.0/\">Creative Commons Attribution-NonCommercial 4.0 International License</a>.",
5
5
  "source": "./src/node.js",
6
6
  "main": "./dist/node.js",
7
+ "module": "./dist/chain.esm",
7
8
  "scripts": {
8
9
  "c": "rollup -c",
9
10
  "w": "rollup -c -w",
package/webpack.config.js CHANGED
@@ -74,6 +74,21 @@ module.exports = [{
74
74
  experiments: {
75
75
  outputModule: true
76
76
  }
77
+ }, {
78
+ entry: './src/chain.js',
79
+ optimization: {
80
+ minimize: true
81
+ },
82
+ output: {
83
+ library: {
84
+ type: 'module'
85
+ },
86
+ filename: 'chain.esm',
87
+ path: path.resolve(__dirname, 'dist'),
88
+ },
89
+ experiments: {
90
+ outputModule: true
91
+ }
77
92
  }, {
78
93
  entry: './src/node.js',
79
94
  plugins: [