From 3f1bd189d4d0d85a6986ddfb839fd4197d0a1c85 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 23 Jun 2023 07:56:45 -0400 Subject: [PATCH] ci: add wasm rollup plugin --- .presetterrc.json | 7 ++++++- npm-shrinkwrap.json | 18 ++++++++++++++++++ package.json | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.presetterrc.json b/.presetterrc.json index e5a8d76..5341c57 100644 --- a/.presetterrc.json +++ b/.presetterrc.json @@ -20,7 +20,7 @@ { "file": "dist/index.js", "format": "cjs", - "sourcemap": true, + "sourcemap": "inline", "inlineDynamicImports": true } ], @@ -30,6 +30,11 @@ { "browser": true } + ], [ + "@apply @rollup/plugin-wasm[default]", + { + "targetEnv": "auto-inline" + } ] ] } diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index cf624d0..410e911 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -13,6 +13,7 @@ "binconv": "^0.2.0" }, "devDependencies": { + "@rollup/plugin-wasm": "^6.1.3", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "binconv": "^0.2.0", @@ -2702,6 +2703,23 @@ } } }, + "node_modules/@rollup/plugin-wasm": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@rollup/plugin-wasm/-/plugin-wasm-6.1.3.tgz", + "integrity": "sha512-7ItTTeyauE6lwdDtQWceEHZ9+txbi4RRy0mYPFn9BW7rD7YdgBDu7HTHsLtHrRzJc313RM/1m6GKgV3np/aEaw==", + "dev": true, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, "node_modules/@rollup/plugin-yaml": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/@rollup/plugin-yaml/-/plugin-yaml-4.1.1.tgz", diff --git a/package.json b/package.json index f89d151..76ed3ab 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "import": "./lib/index.mjs" }, "devDependencies": { + "@rollup/plugin-wasm": "^6.1.3", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "binconv": "^0.2.0",