Skip to content

Could this be used to with lightning-base-components? #13

@ChuckJonas

Description

@ChuckJonas

Trying to figure out if it's possible to bundle the lightning-base-components with an application (specifically seeing if I can get it to work with a react app).

I tried something like this in my webpack config:

new LWCWebpackPlugin({
        namespace: {
          // LWC Namespace with path
          lightning: path.resolve(root, 'node_modules/lightning-base-components/src/lightning')
        },
        // NPM modules
        modules: [
          '@salesforce-ux/design-system',
        ]
}),

Was hoping this would let me reference the components via something like this:

<lightning-button
        label="Neutral"
        title="Non-primary action"
        onclick={() => console.log('abc')}
        class="slds-m-left_x-small"
></lightning-button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions