mirror of
https://github.com/0x5eal/rbxts-pako.git
synced 2025-04-18 10:53:49 +01:00
Added esm build, #97
This commit is contained in:
parent
ab9b7fecde
commit
b4d9a94488
3 changed files with 13 additions and 1 deletions
|
@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Increased default inflate chunk size to 64K.
|
- Increased default inflate chunk size to 64K.
|
||||||
- Moved exported constants to `.constants`.
|
- Moved exported constants to `.constants`.
|
||||||
- Switched to es6. Legacy es5 builds available in `/dist`.
|
- Switched to es6. Legacy es5 builds available in `/dist`.
|
||||||
|
- Added esm build.
|
||||||
- Structure of `/dist` folder changed.
|
- Structure of `/dist` folder changed.
|
||||||
- Upgraded build tools to modern ones.
|
- Upgraded build tools to modern ones.
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
],
|
],
|
||||||
"license": "(MIT AND Zlib)",
|
"license": "(MIT AND Zlib)",
|
||||||
"repository": "nodeca/pako",
|
"repository": "nodeca/pako",
|
||||||
|
"exports": {
|
||||||
|
"import": "./dist/pako.esm.js",
|
||||||
|
"require": "./index.js"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"test": "npm run lint && mocha",
|
"test": "npm run lint && mocha",
|
||||||
|
|
|
@ -75,6 +75,13 @@ export default [
|
||||||
{ file: 'dist/pako_inflate.es5.min.js', format: 'umd', name: 'pako', plugins: [ terser() ] }
|
{ file: 'dist/pako_inflate.es5.min.js', format: 'umd', name: 'pako', plugins: [ terser() ] }
|
||||||
],
|
],
|
||||||
plugins: plugins_es5
|
plugins: plugins_es5
|
||||||
|
},
|
||||||
|
// esm
|
||||||
|
{
|
||||||
|
input: 'index.js',
|
||||||
|
output: [
|
||||||
|
{ file: 'dist/pako.esm.js', format: 'esm' }
|
||||||
|
],
|
||||||
|
plugins: plugins
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue