replicache
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -13,2 +13,8 @@ import init, { dispatch } from './wasm/release/replicache_client.js'; | ||
if (!wasmModuleOutput) { | ||
// Hack around Webpack invalid support for import.meta.url and wasm | ||
// loaders. We use the new URL pattern to tell Webpack to use a runtime | ||
// URL and not a compile time file: URL. | ||
if (!wasmModuleOrPath) { | ||
wasmModuleOrPath = new URL('./wasm/release/replicache_client_bg.wasm', import.meta.url); | ||
} | ||
wasmModuleOutput = init(wasmModuleOrPath); | ||
@@ -15,0 +21,0 @@ } |
{ | ||
"name": "replicache", | ||
"description": "Offline-First for Every Application", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"repository": "github:rocicorp/replicache-sdk-js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -31,3 +31,3 @@ # Replicache JS SDK | ||
<script type="module"> | ||
import Replicache from 'replicache'; | ||
import Replicache from 'replicache'; // Replace with a real module path as needed... | ||
@@ -34,0 +34,0 @@ var rep = new Replicache({ |
1441161
3275