Skip to content

Commit

Permalink
Silence webpack warning due to babel not removing type-only imports
Browse files Browse the repository at this point in the history
  • Loading branch information
suchipi committed Jan 23, 2020
1 parent 8b846e7 commit 353412d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 53 deletions.
1 change: 1 addition & 0 deletions babel.config.js
Expand Up @@ -13,5 +13,6 @@ module.exports = {
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-optional-chaining",
"babel-plugin-remove-prev-node",
],
};
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -22,6 +22,7 @@
"@workspace-builder/babel": "^1.0.0",
"@workspace-builder/shell-command": "^1.0.0",
"babel-eslint": "^10.0.3",
"babel-plugin-remove-prev-node": "^1.0.0",
"eslint": "^6.8.0",
"eslint-config-unobtrusive": "^1.2.5",
"eslint-plugin-import": "^2.20.0",
Expand Down
7 changes: 5 additions & 2 deletions packages/2d/src/Components/index.ts
@@ -1,4 +1,7 @@
import Animation, { AnimationFrame, AnimationAPI } from "./Animation";
import Animation, {
AnimationFrame,
AnimationAPI /* @babel-remove-prev-node */,
} from "./Animation";
import AnimationSheet from "./AnimationSheet";
import Aseprite from "./Aseprite";
import Audio from "./Audio";
Expand Down Expand Up @@ -26,7 +29,7 @@ import Timer from "./Timer";
export {
Animation,
AnimationFrame,
AnimationAPI,
AnimationAPI /* @babel-remove-prev-node */,
AnimationSheet,
Aseprite,
Audio,
Expand Down
8 changes: 1 addition & 7 deletions packages/game/src/index.ts
@@ -1,10 +1,4 @@
import * as hex from "@hex-engine/2d";
import Root from "./Root";

const rootEntity = hex.createRoot(Root);

// @ts-ignore
window.rootEntity = rootEntity;

// @ts-ignore
window.hex = hex;
hex.createRoot(Root);
51 changes: 7 additions & 44 deletions yarn.lock
Expand Up @@ -3278,18 +3278,6 @@ as-number@^1.0.0:
resolved "https://registry.yarnpkg.com/as-number/-/as-number-1.0.0.tgz#acb27e34f8f9d8ab0da9e376f3b8959860f80a66"
integrity sha1-rLJ+NPj52KsNqeN287iVmGD4CmY=

ase-parser@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/ase-parser/-/ase-parser-0.0.10.tgz#e0a7cd4565e2d4ee807bee3dee2b5958b42e7ecf"
integrity sha512-QbYdSA//wufaT4LMSjLKimxs6EoYO8m2xFR1VjMLQQwx8cknl2NAmC0XA7DbURQ+mpMb9fjL3xKYzbOEvB7TSg==

aseprite-loader@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/aseprite-loader/-/aseprite-loader-0.1.2.tgz#dff555f17a7b5ff62a9213fe11665b10ccabddd0"
integrity sha512-1FqsZ/EG1t2zFnU71Ih/CxIu23lLExflRx9HL8PwbSjoVG7+6eAar4dgVW+v2LKAvkMtumu87qHHChSbQSf2Qw==
dependencies:
ase-parser "^0.0.10"

aseprite-loader@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/aseprite-loader/-/aseprite-loader-0.1.3.tgz#689fc2f87c734466485ed07728beeb770b764480"
Expand Down Expand Up @@ -3501,6 +3489,13 @@ babel-plugin-macros@2.4.2:
cosmiconfig "^5.0.5"
resolve "^1.8.1"

babel-plugin-remove-prev-node@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/babel-plugin-remove-prev-node/-/babel-plugin-remove-prev-node-1.0.0.tgz#faa5bfebd63ff0c27895208d15f8f13edb386d8d"
integrity sha512-KofO0TcoOTNUqRgTHIsVI57RveM+lGSzLcy/who3ZfuOtSe4tU3a/W2jJShCztUQEJCwcEtb6wzLuFWlQA4uXA==
dependencies:
"@babel/helper-plugin-utils" "^7.8.3"

babel-plugin-transform-react-remove-prop-types@0.4.20:
version "0.4.20"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.20.tgz#688bdea1e27ea0023775dea817fa2d3f8df8802b"
Expand Down Expand Up @@ -6537,38 +6532,6 @@ hex-color-regex@^1.1.0:
resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==

hex-engine-scripts@0.0.5:
version "0.0.5"
resolved "https://registry.yarnpkg.com/hex-engine-scripts/-/hex-engine-scripts-0.0.5.tgz#6cbd02756b9b06f0139a929e546e6b154500e90c"
integrity sha512-vxvzEjQd1EyWyEz1/Qx7QD1OWwhajUwT8bVhLmvSIGBpOrhOM3MQRHsCLRtDvDtGduP/GEgS1m2W4v7NkQzGIw==
dependencies:
"@babel/core" "^7.8.3"
"@babel/plugin-proposal-class-properties" "^7.8.3"
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.8.3"
"@babel/plugin-proposal-optional-chaining" "^7.8.3"
"@babel/preset-env" "^7.8.3"
"@babel/preset-react" "^7.8.3"
"@babel/preset-typescript" "^7.8.3"
"@types/lodash.debounce" "^4.0.6"
"@types/react-dev-utils" "^9.0.2"
"@types/webpack" "^4.41.2"
aseprite-loader "^0.1.2"
babel-loader "^8.0.6"
bmfont-loader "^0.1.0"
chalk "^3.0.0"
core-js "^3.6.4"
css-loader "^3.4.2"
file-loader "^5.0.2"
html-webpack-plugin "^3.2.0"
react-dev-utils "^10.0.0"
regenerator-runtime "^0.13.3"
resolve "^1.14.2"
style-loader "^1.1.3"
typescript "^3.7.4"
webpack "^4.41.5"
webpack-dev-server "^3.10.1"
xml-source-loader "^0.1.2"

history@^4.9.0:
version "4.10.1"
resolved "https://registry.yarnpkg.com/history/-/history-4.10.1.tgz#33371a65e3a83b267434e2b3f3b1b4c58aad4cf3"
Expand Down

0 comments on commit 353412d

Please sign in to comment.