Skip to content

Conversation

@saadahmsiddiqui
Copy link
Contributor

I did some investigation about this and it turns out our transpiled JS code is the following (published package)
here import.meta is accessed directly, however https://webpack.js.org/api/module-variables/ states that you cannot directly access import.meta instead, access its properties or de-structure it
I believe this affects all projects using webpack and we might need to update the code for this function

image
image

@github-actions github-actions bot temporarily deployed to gopher-poc (Preview) January 6, 2025 16:35 Inactive
@github-actions github-actions bot temporarily deployed to gopher-docs-preview (Preview) January 6, 2025 16:36 Inactive
@MakMuftic
Copy link
Member

@saadahmsiddiqui just rebase this to the latest main before we merge it

@saadahmsiddiqui
Copy link
Contributor Author

rebased

@github-actions github-actions bot temporarily deployed to gopher-poc (Preview) January 6, 2025 18:39 Inactive
@github-actions github-actions bot temporarily deployed to gopher-docs-preview (Preview) January 6, 2025 18:40 Inactive
Copy link
Contributor

@Tbaut Tbaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just saw the warning in the build process, lgtm

@github-actions github-actions bot temporarily deployed to gopher-poc (Preview) January 13, 2025 14:02 Inactive
@github-actions github-actions bot temporarily deployed to gopher-docs-preview (Preview) January 13, 2025 14:03 Inactive
@BeroBurny BeroBurny merged commit f5f6fcf into master Jan 13, 2025
3 checks passed
@BeroBurny BeroBurny deleted the fix/webpack-import-meta-error branch January 13, 2025 14:03
@github-actions github-actions bot mentioned this pull request Jan 13, 2025
Tbaut added a commit that referenced this pull request Jan 16, 2025
🤖 I have created a release *beep* *boop*
---


<details><summary>docs: 1.0.0</summary>

##
[1.0.0](docs-v0.0.1...docs-v1.0.0)
(2025-01-13)


### ⚠ BREAKING CHANGES

* All functions renamed, different API and flows, please consult docs or
reach out to us directly!

### Features

* add enableSwaps in `transferWithHook` and `transfer`
([#97](#97))
([bd21311](bd21311)),
closes [#94](#94)
* add relay to the docs
([#103](#103))
([310c506](310c506))
* Add sweep function
([#115](#115))
([efaaa2b](efaaa2b)),
closes [#110](#110)
* cross chain contract call
([#21](#21))
([69c0128](69c0128))
* depricate provider param from sdk
([#41](#41))
([72297fe](72297fe))
* docs POC ([#14](#14))
([8cd800d](8cd800d))
* dynamic supported network and tokens in docs
([#32](#32))
([abe5618](abe5618)),
closes [#29](#29)
* erc20 with contract call
([#39](#39))
([77e1d8d](77e1d8d)),
closes [#38](#38)
* native tokens transfers
([#40](#40))
([d4edf35](d4edf35)),
closes [#36](#36)
* refactor api
([#61](#61))
([d6b1e9c](d6b1e9c))
</details>

<details><summary>sprinter-sdk: 1.2.0</summary>

##
[1.2.0](sprinter-sdk-v1.1.2...sprinter-sdk-v1.2.0)
(2025-01-13)


### Features

* Add sweep function
([#115](#115))
([efaaa2b](efaaa2b)),
closes [#110](#110)


### Bug Fixes

* webpack import meta error
([#114](#114))
([f5f6fcf](f5f6fcf))
</details>

<details><summary>sprinter-react: 1.2.0</summary>

##
[1.2.0](sprinter-react-v1.1.2...sprinter-react-v1.2.0)
(2025-01-13)


### Features

* Add sweep function
([#115](#115))
([efaaa2b](efaaa2b)),
closes [#110](#110)
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thibaut Sardan <[email protected]>
This was referenced Jan 21, 2025
BeroBurny pushed a commit that referenced this pull request Jan 21, 2025
🤖 I have created a release *beep* *boop*
---


<details><summary>docs: 0.1.0</summary>

##
[0.1.0](docs-v0.0.1...docs-v0.1.0)
(2025-01-21)


### Features

* Add sweep function
([#115](#115))
([efaaa2b](efaaa2b)),
closes [#110](#110)


### Bug Fixes

* `package.json` - repository
([#127](#127))
([21c7007](21c7007))
</details>

<details><summary>sprinter-sdk: 1.2.0</summary>

##
[1.2.0](sprinter-sdk-v1.1.2...sprinter-sdk-v1.2.0)
(2025-01-21)


### Features

* Add sweep function
([#115](#115))
([efaaa2b](efaaa2b)),
closes [#110](#110)
* expand bridge transaction history using relay API
([#122](#122))
([06ca1a0](06ca1a0))


### Bug Fixes

* `package.json` - repository
([#127](#127))
([21c7007](21c7007))
* webpack import meta error
([#114](#114))
([f5f6fcf](f5f6fcf))
</details>

<details><summary>sprinter-react: 1.2.0</summary>

##
[1.2.0](sprinter-react-v1.1.2...sprinter-react-v1.2.0)
(2025-01-21)


### Features

* Add sweep function
([#115](#115))
([efaaa2b](efaaa2b)),
closes [#110](#110)


### Bug Fixes

* `package.json` - repository
([#127](#127))
([21c7007](21c7007))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

5 participants