title: codeFrame is not a function - webpack
body: <p>I am trying to minify angularjs application. I am using this: <a href="https://github.com/schmod/babel-plugin-angularjs-annotate" rel="nofollow noreferrer">https://github.com/schmod/babel-plugin-angularjs-annotate</a> for annotation and then minify. </p>
  
  <p>This the <code>package.json</code> :</p>
  
  <pre><code>{
    "name": "amspackage",
    "version": "1.0.0",
    "description": "",
    "main": "_config.js",
    "scripts": {
      "build": "webpack"
    },
    "devDependencies": {
      "@babel/cli": "^7.4.4",
      "@babel/core": "^7.4.5",
      "@babel/preset-env": "^7.4.5",
      "@babel/loader": "^8.0.6",
      "babel-minify-webpack-plugin": "^0.3.1",
      "babel-plugin-angularjs-annotate": "^0.10.0",
      "ng-annotate-loader": "0.6.1",
      "raw-loader": "0.5.1",
      "webpack": "^4.33.0",
      "webpack-cli": "^3.3.3",
      "webpack-file-preprocessor-plugin": "0.0.1"
    },
    "author": "",
    "license": "ISC"
  
  }
  </code></pre>
  
  <p>This is webpack.config.js:</p>
  
  <pre><code>    output: {
        path: __dirname + '/',
        filename: 'app.bundle.js',
    },
    module: {
      rules : [
        {
          test : /\.js$/,
          use  : [
  
            {
              loader : 'babel-loader',
              query: {
                plugins: ['angularjs-annotate'],
                presets: ['@babel/preset-env']
            }
            }
          ]
        },
        {
          test : /src.*\.tpl\.html$/,
          use  : [
            {
              loader : 'raw-loader'
            }
          ]
        }
      ],
    },
  </code></pre>
  
  <p>When I run webpack I get an error saying <code>codeFrame</code> is not a function. </p>
  
  <p>When I look at <code>app.bundle.js</code>(the output file), I see this:</p>
  
  <pre><code>(function(module, exports) {
  
      throw new Error("Module build failed (from ./node_modules/babel-loader/lib/index.js):\nTypeError: codeFrame is not a function\n    at isAnnotatedArray (C:\\xampp\\htdocs\\Mininfy app\\apartment-management-system\\ApartmentManagementSystemUI\\node_modules\\babel-plugin-angularjs-annotate\\nginject.js:401:23)
  </code></pre>