From e1d847cd35614f392043bbc648a1b20f5f4ac414 Mon Sep 17 00:00:00 2001 From: j-devel Date: Thu, 17 Feb 2022 17:00:57 +0700 Subject: [PATCH] Rename to 'rustwasm-wrapper' --- {rustwasm-polyfill => rustwasm-wrapper}/package-lock.json | 2 +- {rustwasm-polyfill => rustwasm-wrapper}/package.json | 2 +- {rustwasm-polyfill => rustwasm-wrapper}/src/index.js | 0 src/task-bundle.js | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename {rustwasm-polyfill => rustwasm-wrapper}/package-lock.json (99%) rename {rustwasm-polyfill => rustwasm-wrapper}/package.json (86%) rename {rustwasm-polyfill => rustwasm-wrapper}/src/index.js (100%) diff --git a/rustwasm-polyfill/package-lock.json b/rustwasm-wrapper/package-lock.json similarity index 99% rename from rustwasm-polyfill/package-lock.json rename to rustwasm-wrapper/package-lock.json index 2f4d688..5d81ee8 100644 --- a/rustwasm-polyfill/package-lock.json +++ b/rustwasm-wrapper/package-lock.json @@ -1,5 +1,5 @@ { - "name": "rustwasm-polyfill", + "name": "rustwasm-wrapper", "version": "0.1.0", "lockfileVersion": 1, "requires": true, diff --git a/rustwasm-polyfill/package.json b/rustwasm-wrapper/package.json similarity index 86% rename from rustwasm-polyfill/package.json rename to rustwasm-wrapper/package.json index c7ec96b..0245976 100644 --- a/rustwasm-polyfill/package.json +++ b/rustwasm-wrapper/package.json @@ -1,6 +1,6 @@ { "private": true, - "name": "rustwasm-polyfill", + "name": "rustwasm-wrapper", "version": "0.1.0", "description": "", "author": "j-devel", diff --git a/rustwasm-polyfill/src/index.js b/rustwasm-wrapper/src/index.js similarity index 100% rename from rustwasm-polyfill/src/index.js rename to rustwasm-wrapper/src/index.js diff --git a/src/task-bundle.js b/src/task-bundle.js index e379239..ed669cb 100644 --- a/src/task-bundle.js +++ b/src/task-bundle.js @@ -255,7 +255,7 @@ class BundleTask { const performance = {}; if (rustwasm) { - modules.push(path.resolve(`${__dirname}/../rustwasm-polyfill/node_modules`)); + modules.push(path.resolve(`${__dirname}/../rustwasm-wrapper/node_modules`)); performance.hints = false; modules.push(path.resolve(outDir)); // for importing generated js files @@ -304,7 +304,7 @@ class BundleTask { plugins, watch: isDev, mode: isDev ? 'development' : 'production', - entry: rustwasm ? `${__dirname}/../rustwasm-polyfill/src/index.js` : path.resolve(`${baseDir}/src/index.js`), + entry: rustwasm ? `${__dirname}/../rustwasm-wrapper/src/index.js` : path.resolve(`${baseDir}/src/index.js`), externals: { // https://webpack.js.org/configuration/externals/ }, output: {