Browserifying libraries that were themselves browserified: relative paths error

自作多情 提交于 2019-11-27 23:01:34

This seems to be pretty borked.

Here are a few options:

  • Run derequire on myLib before consuming.

  • Try browserifying your app like so:

    browserify({
      entries: ['./entry'],
      noParse: ['/abs/path/to/vendors/myLib.js'],
    })
    

    If it doesn't work, try it without the extension in the noParse value.

  • Minify myLib before consuming it.

aaaah, i finally got it working. using the standalone option of browserify along with gulp-derequire did the trick! yay!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!