Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 29 02:07

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 29 02:07
    dependabot[bot] closed #16247
  • Sep 29 02:07
    webpack-bot labeled #16310
  • Sep 29 02:07
    dependabot[bot] labeled #16310
  • Sep 29 02:07

    dependabot[bot] on npm_and_yarn

    Bump jest-cli from 27.5.0 to 29… (compare)

  • Sep 29 02:07
    dependabot[bot] opened #16310
  • Sep 29 02:05

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 29 02:05
    dependabot[bot] closed #16246
  • Sep 29 02:05
    webpack-bot labeled #16309
  • Sep 29 02:05
    dependabot[bot] labeled #16309
  • Sep 29 02:05

    dependabot[bot] on npm_and_yarn

    Bump pretty-format from 27.5.0 … (compare)

  • Sep 29 02:05
    dependabot[bot] opened #16309
  • Sep 29 02:03

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 29 02:03
    dependabot[bot] closed #16244
  • Sep 29 02:03
    webpack-bot labeled #16308
  • Sep 29 02:03
    dependabot[bot] labeled #16308
  • Sep 29 02:03

    dependabot[bot] on npm_and_yarn

    Bump jest-diff from 27.5.0 to 2… (compare)

  • Sep 29 02:03
    dependabot[bot] opened #16308
  • Sep 29 02:02

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 29 02:02
    dependabot[bot] closed #16245
Alexander Akait
@alexander-akait
but it will be platform depended
Chris
@ipatch

i don't "impossible to solve" is the correct answer but I don't work with webpack daily so i'm little rusty on certain things.

are saying there isn't a way to check / query open browser windows / tabs when launching webpack to check the DOM element that's related to hte address bar and see if there is an address that is related to the one that webpack is about to open?

are saying that's impossible?

because if you are, i have a difficult time believing that.
Alexander Akait
@alexander-akait
yes, it is very difficult and os depended
for example chrome on windows and chrome on linux works very difference
difference versions of chrome also work very difference
also some browsers can't give api for these
we can't check what you browsers have tab with url
Chris
@ipatch
sure windows and linux are completely different beasts but doesn't mean that webpack can't have OS specific code, ie. mac, windows, *nix
Alexander Akait
@alexander-akait
you say about communication with other program like browser
it is always os depended
Chris
@ipatch
are saying that querying the tab in a browser is impossible for a certain reason?
or are there no APIs written for such a feature?
Alexander Akait
@alexander-akait
Do you understand how a tab is opened?
Chris
@ipatch
yeah you click the new tab button 😉
Alexander Akait
@alexander-akait
no
it is click for you, but it is not click for other programs
Chris
@ipatch
right webpack is more than likely accessing an API exposed by the browser
no?
Alexander Akait
@alexander-akait
It is running child_process
it is package what open tab, you can find many os depended code
right webpack is more than likely accessing an API exposed by the browser
What? :smile:
Chris
@ipatch
i believe it doesn't me you OS dependent code couldn't be written
Alexander Akait
@alexander-akait
You are not the first to want this behavior and it has not yet been implemented for a number of technical reasons that cannot be solved.
right now
browser doesn't prove api on js :smile:
Chris
@ipatch
looks like sindresorhus uses a series of if statements to check for various OS flavors, i mean there's only 3 major OSes that would require support.
• macOS
• Windows
• *nix Linux
Alexander Akait
@alexander-akait
simple: we can't to ask browser open package in same tab
because browser doesn't have api for this
Chris
@ipatch

like ALL browser, i guess "brower" == "to all major browsers" == [Chrome, Firefox, IE, Opera, etc]

your saying not a single browser provides a feature as the one we're describing?

deAtog
@deAtog
@ipatch I think you are misunderstanding the issue here.. to open a URI or file on Linux, OSX, Windows, etc. most applications just pass the URI or file location to an external program which then determines how to open the given URI or file. The process used is similar to how a file browser opens a file and is equivalent to requesting the same file be opened multiple times.
Alexander Akait
@alexander-akait
@deAtog :+1:
Chris
@ipatch
"well webpack would be much cooler if it did"™️
Aditya Prakash
@pAditya198
@deAtog I don't understand the last part about opening same file multiple times?
deAtog
@deAtog
@pAditya198 If you open a file browser in any OS and open a file it will launch the appropriate program to open the file. Each time you perform that action it will start another instance of that program and open the requested file. Some programs such as Microsoft Word will detect that the requested file is already open and not create another window with the file open. Other applications such as Adobe Acrobat Reader or Notepad in Windows will not. Web browsers behave like the latter because you can have many tabs open all on the same site.
gideon ubaldo
@gideonubaldo
Hi, hope you guys are well. I am new to webpack and I was wondering how to access components(with dependencies) that has been bundled? I am using it with react. Is there anyone that has an idea for this or could direct me to a resource?
Aditya Prakash
@pAditya198
@deAtog Thanks got it.
sdyalor
@sdyalor
anyone with pwa-starter-kit?
Wagner Barongello
@barongello
How to compile sass with webpack? I am trying like this: https://pastebin.com/Vm4Bxr5N But then in the compiled file I got the webpack js instead of css
edwardj2
@edwardj2
1Ju9B75vBy9bZNwjD4UWaVwzfpuwKH1mG4
Akash Vishwakarma
@akashishu777
Hi, just wanted to ask you guys, I am using webpack and my project is having index.css.map file does it work with webpacl?
Uzlopak
@Uzlopak
Hi, anyone awake :)?
Uzlopak
@Uzlopak
when i want to use the webworker plugin with typescript i get an unhandled type error
and i just use the example on the plugin page
Luke Kang
@kidkkr
maybe your codebase has TypeError indeed.
Does error message from tsc ? (typescript compiler)
YuDi-JerrY
@YuDi-JerrY
after bundling my code...JSON.parse() not working in my bundled file...it is doing nothing just getting printed as a line.
anyone can suggest something on this?