Skip to content

Don't reference package.json and using module field in package.sjon #261

Open
@ChristianStornowski

Description

@ChristianStornowski

I'm using webpack 3 and bundle dependencies by using es2015 import and export statements. TypeScript is transcompiling everything.
Therefore the module field in proj4 package.json will lead webpack to lib/index.js and this uses version.js. My problem is now the version.js which reference to proj4js package.json. Because of this combination webpack is bundling package.json from proj4js for my app. npm 5 added some file system path information at installing proj4js.
So i will have a production app with a bundled proj4js package.json with lmy ocal file system path information. In my opinion this is a security issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions