title: Extract single Component (with dependencies) from nuxt (2)
body: <p>Is it possible to build single component libraries from a nuxt project like you do with <code>vue-cli-service build --mode production --target lib ...</code> in vue?</p>
  <p>I installed vue-cli-service as dev-dependency (into my nuxt project) and ran:</p>
  <pre><code>vue-cli-service build --mode production --target lib --name &lt;lib-name&gt; &lt;/path/to/Component&gt;
  </code></pre>
  <p>If I run it without any additional configuration, the build failed with:</p>
  <pre><code>Error: Compiling RuleSet failed: Unexpected property test in condition (at ruleSet[1].rules[1].resource.test: resource =&gt; {
          currentResource = resource
          return true
  </code></pre>