fermyon / spin-js-sdk

https://developer.fermyon.com/spin/javascript-components
Apache License 2.0
49 stars 17 forks source link

add webpack plugin to manage the externals configuration #235

Closed karthik2804 closed 3 months ago

karthik2804 commented 3 months ago

Once this is merged, the webpack config on apps can become something like the following where the plugin takes care of injecting the externals.

const path = require('path');
const SpinSDKPlugin = require("@fermyon/spin-sdk/plugin/webpack")

module.exports = {
    ...
    plugins: [
        new SpinSDKPlugin()
    ],
    ...
};