Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't throw error in development mode #27

Open
Vitegor opened this issue Feb 28, 2018 · 0 comments
Open

Don't throw error in development mode #27

Vitegor opened this issue Feb 28, 2018 · 0 comments

Comments

@Vitegor
Copy link

Vitegor commented Feb 28, 2018

Environment (Windows 7):

  1. package.json
{
  "name": "parcel_vue",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "dev": "parcel src/index.html --open --no-cache",
    "build": "parcel build src/index.html --no-minify --no-cache --public-url ./",
    "prod": "parcel build src/index.html  --no-cache --public-url ./"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "moment": "^2.20.1",
    "vue": "^2.5.13"
  },
  "devDependencies": {
   
 "parcel-bundler": "^1.5.1",
    "parcel-plugin-typescript": "^0.6.1-next.2",
    "typescript": "^2.7.1"
  }
}
  1. index.ts
var getMessage = (name: string): string => {
    return `Hello, ${name}!`;
}
console.log(getMessage("12345"));
  1. tsconfig.json
{
  "parcelTsPluginOptions": {
    "transpileOnly": false
  }
}

I run npm run dev, and its builds succesfull. If i change console.log(getMessage("12345")) to console.log(getMessage(12345)) its builds succesfull yet, without error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant