GithubHelp home page GithubHelp logo

Comments (13)

indeyets avatar indeyets commented on July 28, 2024 9

@evilebottnawi any news?

from babel-minify-webpack-plugin.

alexander-akait avatar alexander-akait commented on July 28, 2024 2

@DangoDev please wait new release (will be in near future)

from babel-minify-webpack-plugin.

bvibber avatar bvibber commented on July 28, 2024 2

I'm not so sure this is stable with babel 7.2.2 and webpack 4.29... Using the above workaround I get:

    ERROR in Cannot read property 'isPure' of null

If I add to the plugin options removeUndefined: false it works around that, but then something else fails:

    ERROR in Cannot read property 'getBinding' of null

from babel-minify-webpack-plugin.

gknapp avatar gknapp commented on July 28, 2024 2

@jsauca I aborted switching to this plugin for minification and returned to uglifyjs-webpack-plugin.

I read this plugin produced better minified code but couldn't get it to work. Chrome inspector's coverage reports drove me to try and seek smaller build sizes - it appears to be somewhat common for reactjs based web app to only have ~50% code coverage / usage.

I've read including node_modules in production build configs could eliminate a lot of dead / unused code.

from babel-minify-webpack-plugin.

Haraldson avatar Haraldson commented on July 28, 2024 2

I would like to re-enable this plugin, but whenever I do, and try to build, the build process just gets stuck in limbo without any output. Is this issue being worked on?

from babel-minify-webpack-plugin.

ztyzbb avatar ztyzbb commented on July 28, 2024 1

@hershmire wangqs1990โ€˜s solution works well.

from babel-minify-webpack-plugin.

liringlas avatar liringlas commented on July 28, 2024 1

Looks like I have kind of similar issue as @gknapp has, breaks on adding @babel/core as custom 'babel' field value.

ERROR in Cannot read property 'isPure' of null
ERROR in Cannot read property 'isProgram' of null

"webpack": "^4.29.6" , "@babel/core": "^7.4.3"

from babel-minify-webpack-plugin.

wangqs1990 avatar wangqs1990 commented on July 28, 2024

option babel and minifyPreset help me

new MinifyPlugin({ builtIns: false }, {
    babel: require('@babel/core'),
    minifyPreset: require('babel-preset-minify')
})

from babel-minify-webpack-plugin.

hershmire avatar hershmire commented on July 28, 2024

Does this plugin still not support Babel 7?

from babel-minify-webpack-plugin.

alexander-akait avatar alexander-akait commented on July 28, 2024

Sorry, don't have time on this right now, my todo list is very big ๐Ÿ˜ž

from babel-minify-webpack-plugin.

gknapp avatar gknapp commented on July 28, 2024

I'm seeing:

ERROR in Couldn't find intersection

ERROR in Couldn't find intersection

ERROR in Couldn't find intersection

ERROR in Couldn't find intersection

ERROR in Couldn't find intersection

ERROR in Couldn't find intersection

ERROR in Couldn't find intersection

ERROR in don't know how to turn this value into a node

config:

new MinifyPlugin({}, {
  babel: require("@babel/core"),
  minifyPreset: require("babel-preset-minify")
})

I've tried a variation, copying @wangqs1990 suggestion, same result:

new MinifyPlugin({
  builtIns: false,
  mangle: { topLevel: true }
}, {
  babel: require("@babel/core"),
  minifyPreset: require("babel-preset-minify")
})

from babel-minify-webpack-plugin.

jsauca avatar jsauca commented on July 28, 2024

Hi @gknapp,

I am experiencing the exact same isssues as you with Webpack 4.29.6 and Babel 7.
Have you found any fixes or any ways to bypass those errors messages ?

from babel-minify-webpack-plugin.

gknapp avatar gknapp commented on July 28, 2024

I tried this and other various tweaks to try and eliminate any unused code. I already had webpack in production mode, I found no difference in bundle size by including node_modules.

I've read including node_modules in production build configs could eliminate a lot of dead / unused code.

from babel-minify-webpack-plugin.

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.