Giter Site home page Giter Site logo

Comments (8)

BoltDoggy avatar BoltDoggy commented on June 18, 2024

You can show a repo, I will test it. @Darkbish

from parcel-plugin-vue.

Darkbish avatar Darkbish commented on June 18, 2024

Sorry for waiting a long time, there was some work to do yestoday.
Repo parcel-demo for testing, @lc60005457 .
thanks!

from parcel-plugin-vue.

Darkbish avatar Darkbish commented on June 18, 2024

I found the reason, parcel-plugin-vue does not support eslint, I should use parcel-plugin-eslint, you can close this issue, @lc60005457 .

from parcel-plugin-vue.

BoltDoggy avatar BoltDoggy commented on June 18, 2024

@Darkbish No, not eslint Error.

in '.babelrc'

{
  "presets": [
    [
      "env",
      {
        "modules": false // Here is murderer.
      },
      ...
    ]
  ],
  ...
}

"modules": false will tell babel not to transform 'import and export', my vue compiler throw this Error.

If you need "modules": false, like parcel-bundler used a 'babel-plugin-transform-es2015-modules-commonjs', you can edit '.babelrc'

{
  "presets": [
    [
      "env",
      {
        "modules": false,
        "targets": {
          "browsers": ["> 1%", "last 2 versions", "ie > 9"]
        }
      }
    ]
  ],
  "plugins": [
    "babel-plugin-transform-es2015-modules-commonjs", // add this line
    ...
  ]
}

from parcel-plugin-vue.

Darkbish avatar Darkbish commented on June 18, 2024

Build success. But new issue occured, when I open the address in browser, the console printed

Error: Cannot find module 'babel-runtime/core-js/symbol/to-string-tag'

webpack use "module": false for tree shaking, does parcel support this feature?

from parcel-plugin-vue.

BoltDoggy avatar BoltDoggy commented on June 18, 2024

@Darkbish Parcel looks like not supporttree shaking, just I thinking.

You can ask parcel developers for right answers, and I will try to do compatibility.


Error: Cannot find module 'babel-runtime/core-js/symbol/to-string-tag'

Try to remove 'parcel-plugin-vue', then test it, Error also.

{
  ...
  "plugins": [
      "transform-runtime", // Here is murderer.
  ]
}

Need parcel support.

parcel-bundler/parcel#408

from parcel-plugin-vue.

Darkbish avatar Darkbish commented on June 18, 2024

emm, Parcel does not seem suitable for development right now, back to webpack.
Thanks @lc60005457

from parcel-plugin-vue.

BoltDoggy avatar BoltDoggy commented on June 18, 2024

It is not be unsuited to prod env just now.

But Parcel is developing rapidly, It will be better.

from parcel-plugin-vue.

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.