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

Pre-built warning in v2.0.1 #69

Open
trietphamnm opened this issue Jul 5, 2016 · 4 comments
Open

Pre-built warning in v2.0.1 #69

trietphamnm opened this issue Jul 5, 2016 · 4 comments
Assignees

Comments

@trietphamnm
Copy link

Webpack shows pre-built warning of v2.0.1 (npm). Could you please remove it?

flexibility_warning

@jonathantneal
Copy link
Owner

Thanks for letting me know, especially because I have very little experience with Webpack. Do I:

  • Add a pre-build tag to remove the warning?
  • Provide a different source to Webpack. If so, how?
  • Something else?

@trietphamnm
Copy link
Author

There are 2 options:

  1. If you don't want to support webpack build, you can note the work-around settings for webpack user in wiki page as setting path of flexibility to module.noParse in webpack config file. Webpack won't parse your Browserify pre-built lib and use it as is.
  2. You can set npm build for webpack as below:
    webpack ./lib/index.js ./dist/flexibility.js -p --output-library-target umd

I came up with option 1 in my project and the warning disappeared. However, it would be great if it could support webpack build seamlessly.

Thank you for your awesome lib! It truly saved my works in IE 9.

@stephanedemotte
Copy link

+1

@stephanedemotte
Copy link

thanks @trietphamnm

quick fix.

module: {
    noParse: [/node_modules\/flexibility\/flexibility.js/],
    loaders: [
      {...}
    ]
  },

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

No branches or pull requests

3 participants