Meteor-client-bundler with webpack __meteor_runtime_config__ is not defined


I am trying to use this with my webpack project

but I get this error

ReferenceError: __meteor_runtime_config__ is not defined

Here are the steps I did

create a new meteor project

then I run the client bundler like this

meteor-client bundle —source=./ —destination=./meteor-client.bundle.js —config=meteor-client.config.json

and here is the config

  "runtime": {
    "DDP_DEFAULT_CONNECTION_URL": "http://localhost:3000"
  "import": [

then I copy my meteor-client.js to my webpack project node_modules

and import it like this

import 'meteor-client'

then I bundle webpack and run dev-server and I get the above mentioned error.