Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Pratik Parikh
    @pratikpparikh
    is there a way to tell webpack to ignore the transitive dependency while including node_modules?
    pavan
    @pavanmehta91
    I've a peculiar issue using babel transpiler with webpack. I want to convert React's JSX into a bundle. The catch it, I want to pass configuration to it. So that I can make custom bundle at the time of transpiling.
    rafde @rafde
    Rafael De Leon
    @rafde
    Does anyone know if https://github.com/webpack/webpack/blob/v2.1.0-beta.20/lib/optimize/AggressiveSplittingPlugin.js is going to work with common chunk plugin?
    Sean Larkin
    @TheLarkInn
    Does it not currently? Have you taken it for a test drive?
    Rafael De Leon
    @rafde
    I wanted to ask before I invested time . Trying anyhow, but I have to do some resolve fixing
    Tobias Koppers
    @sokra
    should work
    Rafael De Leon
    @rafde
    I was trying to find out if it did but the final step took too long, well over 5 minutes. canceled and went to sleep
    Rafael De Leon
    @rafde
    OK. The reason I wanted to use the plugin was because I wanted to have webpack create one chunk per JS module while not affecting the CommonChunk file that is created with all of my 3rd party libraries so the webpack watch doesn't create all my js code in one file.
    smcmurray
    @smcmurray
    Supposedly in 1.13, the es6 parser has been backported from 2.x. What's the pipeline to let webpack bundle imports, split on System.import, etc. but still transpile to es5?
    Rafael De Leon
    @rafde
    split still relies on require.ensure
    not sure about the bundle imports
    smcmurray
    @smcmurray
    @rafde then what does this mean?-> http://webpack.github.io/docs/changelog.html#1-13
    smcmurray
    @smcmurray

    from https://gist.github.com/sokra/27b24881210b56bbaff7: "The ES6 Loader spec defines System.import as method to load ES6 Modules dynamically on runtime.

    Webpack threads System.import as splitpoint and puts the requested module in a separate chunk."

    ok. I'm not sure what I did to embed that page in gitter...
    but it does state that v2 understands System.import for codesplitting
    and http://webpack.github.io/docs/changelog.html#1-13 states that v2's es6 parser has been backported to 1.13
    so shouldn't that mean that v1.13 understands System.import?
    Rafael De Leon
    @rafde
    I make my assumption through the current docs. So it doesn't seem so
    smcmurray
    @smcmurray
    How stable is v2? After 20 betas I expect it's fairly stable... no?
    Jon Harris
    @jharris4
    @smcmurray I recently tried upgrading from 1.13.2 to 2.1.0-beta.25 and I’m seeing that a (naive?) change from require.ensure to System.import is not working at all as I expected
    I’m hitting a couple of issues in migrating to System.import, first an annoyance, chunk files cannot be named anymore apparently (webpack/webpack#1949)
    The more serious problem I’m seeing is my chunk files seem to be being aggressively merged, which may be due to a config change from 1.x->2.x
    Jon Harris
    @jharris4
    I just posted a stack overflow question about code splitting when migrating from webpack 1.x to webpack 2.x. I was using a nested require.ensure statement that's not working so well with nested System.import calls. Anyone have any insight/suggestions? http://stackoverflow.com/questions/39643788/nested-system-import-calls-with-webpack-2
    Twitty Martin
    @TwittyMartin1_twitter
    I have a question regarding Easy-webpack using additional loaders: https://stackoverflow.com/questions/39726060/easy-webpack-using-additional-loaders
    Anvesh Checka
    @geraldchecka
    Hi
    Can someone explain what is the difference between 'devtool' options like 'eval' & 'eval-source-map'?
    Had a hard time trying to understand it from docs
    Roman Dragan
    @romandragan
    Hey everyone! Does anybody know if HMR is supporting rolling back changes? Cause, I'm using it in production and I need this feature very much.
    I've figured out that webpack.records.json file has some property called 'prepreHash', and I think it could be useful for rolling back already applied changes. But there are no docs at all, that describe records file syntax.
    jackiealex
    @jackiealex
    any one use enhanced-resolver?
    Neethu K P
    @kp_neethu_twitter
    Hi every one
    I am new to webpack and have some issue when i try to run the project using webpack
    i am getting the following error
           Asset    Size  Chunks                    Chunk Names

    ./dist/bundle.js 914 kB 0 [emitted] [big] test-suite
    [2] ./~/process/browser.js 2.52 kB {0} [built]
    [11] ./~/selenium-webdriver/lib/command.js 4.48 kB {0} [built]
    [12] ./~/selenium-webdriver/lib/webdriver.js 26 kB {0} [built]
    [15] ./~/selenium-webdriver/lib/capabilities.js 5.82 kB {0} [built]
    [18] ./~/selenium-webdriver/lib/error.js 12.1 kB {0} [built]
    [19] ./~/selenium-webdriver/lib/logging.js 6.31 kB {0} [built]
    [22] ./~/selenium-webdriver/remote/index.js 6.23 kB {0} [built]
    [60] ./~/selenium-webdriver/lib/by.js 2.85 kB {0} [built]
    [61] ./~/selenium-webdriver/lib/input.js 1.67 kB {0} [built]
    [164] ./src/TestHelper.js 880 bytes {0} [built]
    [165] ./src/WebDriverProvider.js 1.49 kB {0} [built]
    [166] ./index.js 133 bytes {0} [built]
    [358] ./~/selenium-webdriver/chrome.js 7.79 kB {0} [built]
    [359] ./~/selenium-webdriver/edge.js 3.99 kB {0} [built]
    [364] ./~/selenium-webdriver/index.js 9.41 kB {0} [built]

    + 390 hidden modules

    ERROR in ./src/WebDriverProvider.js
    Module not found: Error: Can't resolve './config/defaultConfig' in 'C:\RemindersVR\fusion-test-suite\src'
    @ ./src/WebDriverProvider.js 1:406-449
    @ ./index.js

    ERROR in ./src/TestHelper.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\src'
    @ ./src/TestHelper.js 1:746-759
    @ ./index.js

    ERROR in ./~/selenium-webdriver/chrome.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/chrome.js 1:1154-1167
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/edge.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/edge.js 1:899-912
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/ie.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/ie.js 1:899-912
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/opera.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/opera.js 1:899-912
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/phantomjs.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver'
    @ ./~/selenium-webdriver/phantomjs.js 1:899-912
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/remote/index.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver\remote'
    @ ./~/selenium-webdriver/remote/index.js 1:925-938
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/net/portprober.js
    Module not found: Error: Can't resolve 'fs' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver\net'
    @ ./~/selenium-webdriver/net/portprober.js 1:55-68
    @ ./~/selenium-webdriver/chrome.js
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/net/portprober.js
    Module not found: Error: Can't resolve 'child_process' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver\net'
    @ ./~/selenium-webdriver/net/portprober.js 1:22-46
    @ ./~/selenium-webdriver/chrome.js
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriverProvider.js
    @ ./index.js

    ERROR in ./~/selenium-webdriver/net/portprober.js
    Module not found: Error: Can't resolve 'net' in 'C:\RemindersVR\fusion-test-suite\node_modules\selenium-webdriver\net'
    @ ./~/selenium-webdriver/net/portprober.js 1:73-87
    @ ./~/selenium-webdriver/chrome.js
    @ ./~/selenium-webdriver/index.js
    @ ./src/WebDriv

    "use strict"

    const webpack = require("webpack");
    const path = require("path");

    const webpackConfig = {
    entry: {
    "test-suite": "./index.js"
    },
    output: {
    path: path.join(__dirname, "../"),
    filename: "./dist/bundle.js"
    },
    module: {
    rules: [
    {
    test: /.(js|jsx)$/,
    use: [{
    loader: "babel-loader",
    options: {
    presets: [
    ["es2015", {"modules": false}],
    ["babili"]
    ]
    }
    }]
    }
    ]
    }
    };

    module.exports = webpackConfig;

    this is my config file
    can any one help me resolve this issue ?
    Tejas Bubane
    @tejasbubane
    @kp_neethu_twitter webpack is not able to find those modules/files like ./config/defaultConfig, fs etc. Check for import/require in the source code at those error locations.
    Neethu K P
    @kp_neethu_twitter
    Need a immediate help with webpack