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

parcel build does not minify typescript code #4985

Closed
nsainaney opened this issue Aug 6, 2020 · 1 comment
Closed

parcel build does not minify typescript code #4985

nsainaney opened this issue Aug 6, 2020 · 1 comment
Labels
Stale Inactive issues

Comments

@nsainaney
Copy link

🐛 bug report

We are running v1.12.4 with the following command:

parcel build --no-content-hash ./src/config.ts ./src/index.html --out-dir ./lib

In several of our projects and the resulting js files in the lib folder have source maps and are not minified

🎛 Configuration (.babelrc, package.json, cli command)

The tsconfig is as follows:

{
    "compilerOptions": {
        "composite": false,
        "module": "commonjs",
        "moduleResolution": "node",
        "declaration": true,
        "noImplicitAny": false,
        "removeComments": true,
        "noLib": false,
        "outDir": "./lib",
        "rootDir": "./src",
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "esModuleInterop": true,
        "skipLibCheck": true,
        "target": "es2018",
        "sourceMap": true,
        "lib": ["es2018", "dom"],
    },
    "references": [
        { "path":  "../../common" },
        { "path":  "../../ui/packages/web" },
        { "path":  "../common" }
    ],
    "exclude": [
        "node_modules",
        "test"
    ]
}

🤔 Expected Behavior

Files should be minified and there shouldn't be any source maps

🌍 Your Environment

Software Version(s)
Parcel v1.12.4
Node v 12.16.2
Yarn v1.22.4
Operating System MacOS Catalina
@github-actions
Copy link

github-actions bot commented Feb 3, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

@github-actions github-actions bot added the Stale Inactive issues label Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Inactive issues
Projects
None yet
Development

No branches or pull requests

1 participant