Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add treeshake check #96

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add treeshake check #96

wants to merge 2 commits into from

Conversation

dej611
Copy link
Owner

@dej611 dej611 commented Jan 15, 2022

No description provided.

@vercel
Copy link

vercel bot commented Jan 15, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/dej611/spid-react-button/DK7384Girs4BqRqQnFkrjU761TQJ
✅ Preview: https://spid-react-button-git-ci-treeshake-dej611.vercel.app

@github-actions
Copy link
Contributor

Check tree-shakeability for d99dde4: ❌ not tree-shakeable

Agadoo stdout ```javascript
</details>
<details>
<summary>Agadoo stderr</summary>
```javascript
npm WARN exec The following package was not found and will be installed: agadoo
npm WARN deprecated rollup-plugin-virtual@1.0.1: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-virtual.
'react' is imported by dist/index.modern.js, but could not be resolved – treating it as an external dependency
'react-focus-on' is imported by dist/index.modern.js, but could not be resolved – treating it as an external dependency
/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/rollup/dist/shared/node-entry.js:5400
      base = Object.assign(new Error(base.message), base);
                           ^

Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
  at error (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/rollup/dist/shared/node-entry.js:5400:30)
  at Module.error (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/rollup/dist/shared/node-entry.js:9824:16)
  at tryParse (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/rollup/dist/shared/node-entry.js:9717:23)
  at Module.setSource (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/rollup/dist/shared/node-entry.js:10080:33)
  at /home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/rollup/dist/shared/node-entry.js:12366:20
  at async Promise.all (index 0)
  at async Promise.all (index 0)
  at async Promise.all (index 0)
  at async Promise.all (index 0)
  at async Promise.all (index 0) {
code: 'PARSE_ERROR',
parserError: SyntaxError: Unexpected token (1:0)
    at Object.pp$4.raise (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/acorn/dist/acorn.js:2927:15)
    at Object.pp.unexpected (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/acorn/dist/acorn.js:698:10)
    at Object.pp$3.parseExprAtom (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/acorn/dist/acorn.js:2326:12)
    at Object.parseExprAtom (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/rollup/dist/shared/node-entry.js:11811:30)
    at Object.pp$3.parseExprSubscripts (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/acorn/dist/acorn.js:2129:21)
    at Object.pp$3.parseMaybeUnary (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/acorn/dist/acorn.js:2106:19)
    at Object.pp$3.parseExprOps (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/acorn/dist/acorn.js:2041:21)
    at Object.pp$3.parseMaybeConditional (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/acorn/dist/acorn.js:2024:21)
    at Object.pp$3.parseMaybeAssign (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/acorn/dist/acorn.js:1997:21)
    at Object.pp$3.parseExpression (/home/runner/.npm/_npx/59c1a90b15fbaa9c/node_modules/acorn/dist/acorn.js:1963:21) {
  pos: 0,
  loc: Position { line: 1, column: 0 },
  raisedAt: 1
},
pos: 0,
loc: {
  column: 0,
  file: '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-arubaid~biXjMUPd.svg',
  line: 1
},
frame: '1: <svg width="99" height="24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M98.4 7.739v16.13H82.596s-2.629-.163-4.767-1.796c-3.543-2.693-3.429-5.355-3.429-5.355V.033h18.84s2.156 1.06 3.723 3.396c1.339 2.008 1.437 4.31 1.437 4.31z" fill="#06C" fill-rule="nonzero"/><path d="M74.4 5.437v6.073s2.596-.392 2.596-3.183c0-2.482-2.596-2.89-2.596-2.89zM81.584 3.51a11.928 11.928 0 0 0-1.34-.114c-.244 0-.424.016-.489.065a.263.263 0 0 0-.114.229c0 .098.049.18.147.212.098.033.359.098.783.18.409.065.719.196.882.359.18.18.261.44.261.832 0 .833-.522 1.258-1.55 1.258-.344 0-.752-.05-1.242-.147l-.244-.05.032-.865c.637.082 1.094.115 1.339.115.245 0 .424-.017.522-.066.098-.049.131-.114.131-.228 0-.098-.049-.18-.147-.212-.098-.05-.343-.098-.75-.18-.41-.065-.703-.18-.899-.343-.196-.163-.294-.44-.294-.865 0-.408.147-.719.408-.93.278-.213.637-.311 1.078-.311.31 0 .718.049 1.257.147l.245.049-.016.865zM84.18 3.38c-.196 0-.392.032-.588.114l-.098.033V5.55c.228.033.424.049.571.049.31 0 .506-.098.62-.261.115-.18.18-.474.18-.898-.016-.702-.228-1.061-.685-1.061zm-1.715 4.669V2.547h1.029v.212c.326-.196.62-.31.882-.31.522 0 .914.163 1.159.457.245.31.375.85.375 1.6 0 .751-.147 1.274-.408 1.567-.278.294-.735.441-1.355.441-.18 0-.36-.016-.555-.049l-.098-.016v1.6h-1.029zM91.886 5.486 92 5.469V3.43a4.555 4.555 0 0 0-.751-.082c-.408 0-.62.375-.62 1.126 0 .409.049.686.147.866.097.18.244.245.457.245.196 0 .408-.033.653-.098zm1.143-4.49v5.437H92v-.164c-.36.18-.67.245-.947.245-.571 0-.963-.163-1.175-.49-.229-.326-.327-.832-.327-1.55 0-.703.13-1.225.408-1.552.261-.326.67-.49 1.208-.49.164 0 .392.033.686.082l.147.033V.963h1.029v.033zM87.722 4.8c-.326 0-.587-.114-.783-.327a1.177 1.177 0 0 1-.31-.816c0-.326.098-.588.31-.8.196-.212.457-.31.783-.31.327 0 .588.114.784.326.196.229.31.49.31.817 0 .326-.098.588-.31.8a1.07 1.07 0 0 1-.784.31M86.629 6.367c0-.326.098-.587.31-.8.196-.212.457-.31.783-.31.327 0 .588.114.784.327.196.228.31.49.31.816" fill="#FFF" fill-rule="nonzero"/><g fill="#FFF" fill-rule="nonzero"><path d="M79.494 21.388V8.212h2.465v13.176zM95.38 14.694c.049 3.33-1.976 6.71-6.596 6.71h-5.176V8.23h5.176c4.522-.017 6.53 3.2 6.596 6.465zm-9.307 4.31h2.71c2.988 0 4.18-2.188 4.131-4.326-.049-2.058-1.257-4.098-4.13-4.098h-2.71v8.424z"/></g><path d="M74.563 10.27c.735-.31 1.208-.948 1.29-1.65v-.375a1.996 1.996 0 0 0-.31-.85c-.653-.864-1.519-.88-2.482-.832-.032-1.208.033-2.498-.18-3.69-.244-1.436-1.534-2.302-2.89-1.485-.962.636-1.028 1.616-1.044 2.661-.016.947.033 1.894.065 2.84-1.192.099-2.628.131-3.216 1.209V9.91c.196.327.506.604.914.768.719.244 1.519.146 2.27.065.032 1.796.065 3.592.065 5.388.016 1.6-.49 4.31 1.796 4.62 1.518.065 2.171-1.306 2.237-2.612.016-.441.016-.866 0-1.306-.082-2.106-.033-4.229-.017-6.335.523-.016 1.012-.033 1.502-.229zm-8.783 7.934v-4.473c.065.702.114 1.42.163 2.122s.163 1.42-.065 2.106c-.017.082-.066.163-.098.245zm0-11.086V5.437c.13.539.13 1.126 0 1.681zm0 .964c-.098.18-.18.391-.229.636-.049.441.033.85.229 1.176V8.082zm0-2.645v1.681a3.59 3.59 0 0 1-.637 1.388c.098.229.147.457.18.702.195 1.502.342 3.02.457 4.539v4.473c-.898 1.796-3.445 1.078-3.69-.865-.098-.735-.13-1.486-.18-2.237l-.375-4.506c-.164-.539-.213-1.175-.066-1.714-.228-.294-.473-.588-.685-.898a3.203 3.203 0 0 1-.278-.522V4.865c.408-.996 1.306-1.73 2.612-1.632.474.032.964.18 1.372.408.686.408 1.11 1.061 1.29 1.796zM60.506 19.51c.114-.196.18-.424.229-.67a2.069 2.069 0 0 0-.229-1.289v1.96zm0-14.661v2.612a3.523 3.523 0 0 1 0-2.612zm0 12.702c-.343-.637-.996-1.078-1.665-1.47L58.286 16c-.98.343-2.008.686-2.253 1.829-.033-1.143-.05-2.286-.066-3.429-.016-1.698.555-7.82-2.938-6.53-.441.195-.751.49-.996.914a9.444 9.444 0 0 0-1.666-.36c-.098-.016-.196-.016-.31-.032v4.049c.294 0 .604.032.882.065 1.094.98 1.208 2.53.392 3.706-.147.212-.31.392-.54.539-.179.114-.44.147-.734.114v4.033c.914.049 1.78-.082 2.661-.653 1.11 1.388 3.037.588 3.25-1.061 0-.017.016-.115.016-.098.62 2.024 3.559 2.122 4.49.408V17.55h.032zM50.09 8.391v4.05c-.425 0-.85.098-1.16.408-.75.751-.652 2.024-.603 3.004.032.539.995.98 1.763 1.029v4.016a16.035 16.035 0 0 1-1.666-.212c-1.6-.262-2.873-1.568-3.608-2.955-.67-1.258-.473-3.413-.18-4.768.213-.996.752-2.449 1.486-3.167.931-.882 2.662-1.453 3.968-1.404zM38.482 20.98c.636-.017 1.29-.131 1.926-.278 1.42-.343 2.351-1.339 3.135-2.498 1.159-1.714.718-4.62 0-6.449-.751-1.91-1.747-2.628-3.674-3.15a4.89 4.89 0 0 0-1.371-.132v4.05c.44 0 .865.097 1.175.408.8.8.67 2.171.588 3.2-.571.424-1.192.8-1.763.832v4.017h-.016zm0-12.507v4.05c-.31 0-.62.032-.898.065-1.062.898-1.208 2.449-.457 3.592.408.604.881.816 1.371.783v4c-.93.033-1.845-.13-2.694-.67-.93 1.16-2.628.834-3.15-.538-.295-.963.195-4.571-.23-4.882h-.081c-.767 3.298-3.69 4.441-6.825 3.935-1.6-.294-3.118-1.453-3.771-2.939-.408-.98-.327-2.04-.196-3.069.082-.522-.261-.016-.392.098-1.192 1.094-2.53.294-3.526-.588-.523-.473-1.306-.032-1.633.49.033 2.057.163 4.212.016 6.253l-.016.212c-.261 2.286-3.298 2.22-3.706.245-.229-1.371-.163-2.89-.212-4.277 0-.245.016-.343-.098-.555-.31.31-.098 2.58-.066 3.183.017.441.033.898-.016 1.339-.18 1.649-2.09 2.596-3.265 1.143-.751.49-1.698.702-2.694.686v-4.017c.49.033.963-.18 1.371-.8.702-1.094.588-2.694-.473-3.543-.294-.032-.588-.081-.898-.065V8.588c.424.016.881.081 1.388.196.196.049.391.098.604.163.473-.849 1.371-1.225 2.302-.98 1.094.409 1.371 1.355 1.485 2.4l.213-.081c.44-1.094 1.47-1.91 2.694-1.404.947-.555 2.155-.637 3.216-.54 1.437.164 3.543 1.176 3.918 2.678.066.229.13-.049.147-.13.327-1.078.85-2.09 1.339-3.102.914-.62 1.861-1.029 2.857-.245.49.44.718 1.028.702 1.681-.065 1.225-3.216 5.927-.081 5.91 1.355-.016 1.583-.93 1.616-2.105.033-1.698-2.106-3.462-.163-4.898 1.06-.686 2.35-.523 3.069.538.571.898.93 2.041 1.143 3.07.294.147.277-1.568.277-1.829.082-2.661-.065-5.371.18-8.016.294-2.727 3.902-2.22 3.853.36-.13 2.203-.147 4.407-.18 6.611.67-.196 1.323-.343 1.96-.392zm-32.54.082v4.016c-.44 0-.848.098-1.175.409-.783.783-.669 2.171-.587 3.183.571.425 1.175.784 1.747.833v4.016c-1.813-.016-3.723-.816-4.637-2.188-.098-.146-.196-.293-.294-.424-.49-.735-.767-1.747-.816-2.824v-.85c.114-2.334 1.142-4.8 2.955-5.567 1.045-.424 1.877-.62 2.808-.604z" fill="#F26E3D"/><path d="M74.563 10.27c1.143-.49 1.682-1.78.98-2.89-.653-.866-1.519-.882-2.482-.833-.032-1.208.033-2.498-.18-3.69-.244-1.437-1.534-2.302-2.89-1.486-.962.637-1.028 1.617-1.044 2.662-.016.947.033 1.894.065 2.84-1.388.131-3.118.131-3.445 1.845-.098.882.327 1.6 1.143 1.943.719.245 1.519.147 2.27.066.032 1.795.065 3.591.065 5.387.016 1.6-.49 4.31 1.796 4.62 1.518.066 2.171-1.305 2.237-2.612.016-.44.016-.865 0-1.306-.082-2.106-.033-4.228-.017-6.334.523 0 1.012-.017 1.502-.213zM61.91 15.117c.066.735.098 1.502.18 2.237.261 2.025 3.004 2.71 3.804.604.212-.686.114-1.404.065-2.106-.18-2.22-.343-4.457-.62-6.661a3.409 3.409 0 0 0-.18-.702c1.127-1.47 1.012-3.853-.637-4.866a3.42 3.42 0 0 0-1.371-.408c-2.596-.196-3.56 2.89-2.335 4.784.213.31.441.604.686.898-.147.539-.098 1.175.065 1.714l.343 4.506zM46.122 9.78c-.734.718-1.257 2.171-1.485 3.167-.294 1.355-.49 3.526.18 4.767.734 1.388 2.007 2.694 3.607 2.955 1.568.245 2.907.474 4.343-.44 1.11 1.387 3.037.587 3.25-1.062 0-.016.016-.114.016-.098.685 2.27 4.277 2.107 4.718-.245.163-1.37-.833-2.138-1.894-2.759L58.286 16c-.98.343-2.008.686-2.253 1.829-.033-1.143-.05-2.286-.066-3.429-.016-1.698.555-7.82-2.938-6.53-.441.195-.751.49-.996.914a9.444 9.444 0 0 0-1.666-.36c-1.306-.18-3.249.425-4.245 1.356zm5.241 6.449c-.147.212-.31.391-.539.538-.636.392-2.448-.18-2.497-.914-.066-.98-.164-2.253.604-3.004.522-.522 1.355-.425 2.04-.327 1.094.98 1.209 2.531.392 3.707zm-39.38-1.568c-.31.31-.097 2.58-.065 3.184.017.44.033.898-.016 1.339-.18 1.649-2.09 2.596-3.265 1.143-2.123 1.371-5.91.62-7.315-1.486-.098-.147-.195-.294-.293-.425-1.65-2.449-.768-8 2.155-9.24 1.47-.605 2.58-.784 4.163-.409.196.05.392.098.604.164.473-.85 1.371-1.225 2.302-.98 1.094.392 1.371 1.355 1.486 2.4l.212-.082c.44-1.093 1.47-1.91 2.694-1.404.947-.555 2.155-.636 3.216-.538 1.437.163 3.543 1.175 3.919 2.677.065.229.13-.049.147-.13.326-1.078.849-2.09 1.338-3.103.915-.62 1.862-1.028 2.857-.244.49.44.719 1.028.702 1.681-.065 1.225-3.216 5.927-.081 5.91 1.355-.016 1.584-.93 1.616-2.106.033-1.698-2.106-3.461-.163-4.898 1.061-.685 2.35-.522 3.07.54.57.897.93 2.04 1.142 3.068.294.147.278-1.567.278-1.828.081-2.661-.066-5.372.18-8.016.293-2.727 3.901-2.22 3.852.359-.13 2.204-.147 4.408-.18 6.612 1.078-.31 2.172-.539 3.282-.245 1.927.523 2.923 1.24 3.674 3.151.718 1.829 1.16 4.718 0 6.45-.784 1.158-1.714 2.154-3.135 2.497-1.583.343-3.2.522-4.62-.392-.93 1.16-2.629.833-3.151-.539-.294-.963.196-4.571-.229-4.881h-.081c-.768 3.298-3.69 4.44-6.825 3.934-1.6-.293-3.118-1.453-3.771-2.938-.409-.98-.327-2.041-.196-3.07.081-.522-.262-.016-.392.098-1.192 1.094-2.53.294-3.527-.587-.522-.474-1.306-.033-1.632.49.032 2.056.163 4.212.016 6.252l-.016.213c-.262 2.285-3.298 2.22-3.706.245-.229-1.372-.164-2.89-.213-4.278.082-.278.098-.376-.032-.588zm25.144 1.535c.897 1.339 2.057.718 3.134-.065.082-1.029.212-2.4-.588-3.2-.538-.523-1.371-.425-2.073-.327-1.078.898-1.224 2.45-.473 3.592zm-29.813 0c-.881 1.355-2.057.75-3.134-.033-.098-1.012-.196-2.4.587-3.183.54-.523 1.372-.425 2.074-.327 1.077.849 1.192 2.433.473 3.543z" fill="#F06E3E"/><path d="M10.008 21.061c-.359 0-.898-.13-1.388-.702-.702.441-1.616.686-2.612.686-1.943 0-3.853-.882-4.718-2.204-.066-.114-.147-.212-.229-.327l-.065-.098c-.914-1.355-1.094-3.69-.457-5.828.506-1.73 1.437-2.939 2.612-3.445 1.029-.425 1.812-.604 2.612-.604.49 0 .996.065 1.551.196.213.049.408.098.572.147.375-.67 1.012-1.045 1.763-1.045a2.3 2.3 0 0 1 .571.081c1.127.409 1.388 1.437 1.502 2.384l.164-.065c.375-.947 1.159-1.568 1.992-1.568.244 0 .49.05.718.147.653-.375 1.47-.571 2.433-.571.26 0 .522.016.783.049 1.42.163 3.576 1.175 3.935 2.694.016.049.016.065.033.065.016-.016.032-.065.065-.163v-.033c.294-.963.75-1.877 1.175-2.775.05-.115.115-.229.164-.327 0 0 0-.016.016-.016.457-.327 1.078-.686 1.73-.686.409 0 .8.147 1.176.44.49.442.735 1.03.718 1.715-.016.343-.26.93-.555 1.616-.555 1.34-1.257 2.988-.718 3.788.212.31.604.474 1.16.474h.'... 27985 more characters,
watchFiles: [
  '\x00virtual:__agadoo__',
  '/home/runner/work/spid-react-button/spid-react-button/dist/index.modern.js',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-arubaid~biXjMUPd.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-infocertid~bmqXPBOx.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-posteid~PIAVTNQX.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-sielteid~gPbEKUHE.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-timid~FIiWQnSz.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-namirialid~PDxLtsax.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-spiditalia~GdXfNloS.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-intesaid~xcxRNxJf.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-idp-lepidaid~YGVaJzCf.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-ico-circle-lb~LegQefra.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-ico-circle-bb~bpKzRdOW.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-logo-animation-black~ZYbHBrkh.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/spid-logo~zJjEzXFQ.svg',
  '/home/runner/work/spid-react-button/spid-react-button/dist/close~hKFpNpUn.svg'
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant