question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import in vendor browser_polyfill.js

See original GitHub issue

6to5 have a polyfill for the browser for certain features.

My request is for this plugin to import it by default or give one option to import it in vendor.

Currently I had to:

  1. cp node_modules/ember-cli-6to5/node_modules/broccoli-6to5-transpiler/node_modules/6to5-core/browser-polyfill.js vendor
  2. Add to Brocfile:
app.import ('vendor/browser-polyfill.js', {type: 'vendor', prepend: true});

This is needed to keep compatibility with IE8 in certain features.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
knownasilyacommented, May 23, 2016

Isn’t this now includePolyfil?

0reactions
Turbo87commented, Dec 5, 2016

closing this issue as I believe @knownasilya is correct that this feature is now implemented by the includePolyfill option. thanks everyone!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Importing into webpack #169 - mozilla/webextension-polyfill
using import browser from "../scripts/vendor/browser-polyfill"; the output of ls -l shows: 88261 background.js 43390 options.
Read more >
node.js - What is the correct way to load polyfills and shims ...
Your polyfills will load correctly if you do either of the latter methods. Below you can find examples of my polyfills. polyfill.js: import...
Read more >
Webpack : Code Splitting (app, vendor and polyfill builds)
js. We need to tell webpack to use this files and not to add the already imported vendors to ...
Read more >
babel/polyfill
Usage in Browser ... Available from the dist/polyfill.js file within a @babel/polyfill npm release. This needs to be included before all your compiled...
Read more >
@web/polyfills-loader - npm
Generate loader for loading browser polyfills based on feature detection ... legacy/app.js'); } else { // browser supports modules, import a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found