Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built UMD version contains 'const' #12

Open
walterra opened this issue Sep 30, 2016 · 1 comment
Open

Built UMD version contains 'const' #12

walterra opened this issue Sep 30, 2016 · 1 comment

Comments

@walterra
Copy link

Reproduce:

bower install ractive-transitions-slide
cd bower_components/ractive-transitions-slide
npm install

The es5-version file bower_components/ractive-transitions-slide/dist/ractive-transitions-slide.umd.js then still contains const declarations.

@walterra
Copy link
Author

walterra commented Sep 30, 2016

I changed the files package.json to have the same dependencies like ractive-events-hover:

  "devDependencies": {
    "rollup": "^0.20.2",
    "rollup-plugin-babel": "^1.0.0"
  },

I also have to change sourceMap to false in rollup.config.js, then the ES5 distribution file gets transpiled correctly.

However, this also transpiles the ES6 file to have no const declarations.

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

No branches or pull requests

1 participant