1.0.2 • Published 1 year ago

aws-sdk-webpack-externals v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

aws-sdk-webpack-externals

Use this package when developing AWS Lambdas with JavaScript/TypeScript and webpack as a bundler.

This package generates configuration for webpack externals to exclude all packages that are part of the AWS SDK V3 JS from the build (as they are already part of the runtime).

Usage

Install this package as a devDependency

npm i -D aws-sdk-webpack-externals

Require the package in your webpack.config.js

const { awsSdkV3Externals } = require("aws-sdk-webpack-externals");

Use it in your configuration object

module.exports = {
    target: "node",
    externals: [
        ...awsSdkV3Externals(),
    ],
    externalsPresets: {
        node: true,
    },
    // other configuration
}

Since awsSdkV3Externals() returns string[] it can easily combined with other external configuration (see here)

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago