Giter VIP home page Giter VIP logo

Comments (10)

idiotWu avatar idiotWu commented on June 15, 2024

That's seemed to be a problem with babel config.

Can anyone tell me what's the meaning of each option in babel runtime transformer?

from smooth-scrollbar.

prettytamben avatar prettytamben commented on June 15, 2024

I see the demo works now, thanks! However the 'dist' folder js version doesn't.

SCRIPT438: Object doesn't support property or method 'assign'
File: smooth-scrollbar.js, Line: 2, Column: 6724

from smooth-scrollbar.

idiotWu avatar idiotWu commented on June 15, 2024

Oh babel config is still broken :(

from smooth-scrollbar.

idiotWu avatar idiotWu commented on June 15, 2024

@prettytamben I found no workaround for the conflict caused by babel-transform-runtime-plugin, so I'm going to remove all Object.assign in my code 😢

from smooth-scrollbar.

prettytamben avatar prettytamben commented on June 15, 2024

What are the consequences?

from smooth-scrollbar.

idiotWu avatar idiotWu commented on June 15, 2024

@prettytamben Object.assign requires a polyfill in IE, but if I enable polyfill option in runtime transformer, it will generate code like:

import _Object$defineProperty from 'babel-runtime/core-js/object/define-property';
import _Object$keys from 'babel-runtime/core-js/object/keys';
Object.defineProperty(exports, "__esModule", {
  value: true
});

That is a well-known bug in babel@6: https://phabricator.babeljs.io/T2877, and hasn't been resolved yet 😢

from smooth-scrollbar.

prettytamben avatar prettytamben commented on June 15, 2024

Thanks, it works!

On Wed, Aug 10, 2016 at 11:21 AM, Dolphin Wood [email protected]
wrote:

Try update to version 7.1.3


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#33 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANpdoYMRI4gICdaEgOh5XgT5wpqZmRoDks5qeZgKgaJpZM4Jfw2p
.

from smooth-scrollbar.

idiotWu avatar idiotWu commented on June 15, 2024

@prettytamben actually it's still failing in IE10... I am looking for another workaround.

from smooth-scrollbar.

idiotWu avatar idiotWu commented on June 15, 2024

Should be resolved in version 7.1.4 👏 🎉

from smooth-scrollbar.

prettytamben avatar prettytamben commented on June 15, 2024

Genius! :)

from smooth-scrollbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.