emscripten-wasm-loader
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -0,1 +1,7 @@ | ||
<a name="2.2.2"></a> | ||
## [2.2.2](https://github.com/kwonoj/emscripten-wasm-loader/compare/v2.2.1...v2.2.2) (2018-10-23) | ||
- Support browser field for treeshaking | ||
<a name="2.2.1"></a> | ||
@@ -2,0 +8,0 @@ ## [2.2.1](https://github.com/kwonoj/emscripten-wasm-loader/compare/v2.1.1...v2.2.1) (2018-10-23) |
@@ -30,2 +30,11 @@ "use strict"; | ||
exports.mountBuffer = mountBuffer; | ||
/** | ||
* Stub function to support `browser` field in package.json. Do not use. | ||
* | ||
* @internal | ||
*/ | ||
var mountDirectory = function () { | ||
throw new Error('not supported'); | ||
}; | ||
exports.mountDirectory = mountDirectory; | ||
//# sourceMappingURL=mountBuffer.js.map |
@@ -27,3 +27,11 @@ import * as nanoid from 'nanoid'; | ||
}; }; | ||
export { mountBuffer }; | ||
/** | ||
* Stub function to support `browser` field in package.json. Do not use. | ||
* | ||
* @internal | ||
*/ | ||
var mountDirectory = function () { | ||
throw new Error('not supported'); | ||
}; | ||
export { mountBuffer, mountDirectory }; | ||
//# sourceMappingURL=mountBuffer.js.map |
@@ -15,3 +15,9 @@ import { FS } from '../BaseAsmModule'; | ||
declare const mountBuffer: (FS: FS, memPathId: string) => (contents: ArrayBufferView, fileName?: string | undefined) => string; | ||
export { mountBuffer }; | ||
/** | ||
* Stub function to support `browser` field in package.json. Do not use. | ||
* | ||
* @internal | ||
*/ | ||
declare const mountDirectory: () => never; | ||
export { mountBuffer, mountDirectory }; | ||
//# sourceMappingURL=mountBuffer.d.ts.map |
{ | ||
"name": "emscripten-wasm-loader", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Common interface to load wasm module into isomorphic environment", | ||
@@ -8,2 +8,6 @@ "main": "./dist/cjs/index.js", | ||
"types": "./dist/types/index.d.ts", | ||
"browser": { | ||
"./dist/cjs/path/mountDirectory.js": "./dist/cjs/path/mountBuffer.js", | ||
"./dist/esm/path/mountDirectory.js": "./dist/esm/path/mountBuffer.js" | ||
}, | ||
"config": { | ||
@@ -10,0 +14,0 @@ "commitizen": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
71176
911
0