Code Monkey home page Code Monkey logo

Comments (5)

shomanishikawa avatar shomanishikawa commented on June 27, 2024 1

Will definitely look into it! It's the least I could do. Thanks again for your awesome work.

from webpack-flush-chunks.

shomanishikawa avatar shomanishikawa commented on June 27, 2024

Sorry to keep creating and closing issues.

This was fixed by ditching the webpack-node-externals using the whitelist options, and constructing the externals object myself.

from webpack-flush-chunks.

faceyspacey avatar faceyspacey commented on June 27, 2024

Not a problem...You know, i need to look into why webpack-node-externals is problematic. If you have time, it would be great to get some clues on why it doesn't work. no pressure.

from webpack-flush-chunks.

bkniffler avatar bkniffler commented on June 27, 2024

I'd really like to know why webpack-node-externals won't work.. I've tried to get it to work with react-universal-component and webpack-flush-chunks, but nothing works. I've got kinda complex externals, so your version of node-externals will not work unfortunately.

Any idea what could be causing the incompatibility with webpack-node-externals?

from webpack-flush-chunks.

bkniffler avatar bkniffler commented on June 27, 2024

After putting the babel plugin into my own application:

const babelOptions = {
    presets: ['react'],
    plugins: [
      'syntax-dynamic-import',
      'transform-object-rest-spread',
      // 'transform-es2015-destructuring',
      'transform-decorators-legacy',
      'transform-class-properties',
      'transform-es2015-classes',
      ['import', { libraryName: 'antd', style: true }],
      resolve(__dirname, 'universal-import'),
    ],
  };

The problem with webpack-node-externals disappeared and server works perfectly fine.

from webpack-flush-chunks.

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.