Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Readme Webpack example change suggestion #300

Open
catamphetamine opened this issue Jan 10, 2018 · 1 comment
Open

Readme Webpack example change suggestion #300

catamphetamine opened this issue Jan 10, 2018 · 1 comment

Comments

@catamphetamine
Copy link

catamphetamine commented Jan 10, 2018

Something like this would be more appropriate I guess, since Webpack now supports import()

async function initIntl() {
  if (typeof Intl === 'object') {
    return
  }
  await Promise.all([
    import('intl'),
    import('intl/locale-data/jsonp/en')
  ])
}

initIntl().then(...)

If not then just close the issue.

@yyynnn
Copy link

yyynnn commented Jan 30, 2019

or it would be nice to just add it to entries, for eg server entry

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

No branches or pull requests

2 participants