Skip to content

Add require.context for Vue automatic global component registration #723

Closed
@JollyBrackets

Description

@JollyBrackets

What I'm trying to do:
I would like to use the automatic global component registration from Vue as outlined in this guide.
This approach however relies on webpacks require.context method, which is outlined here.

Problem
require.context does not seem to be support by codesandbox (❤) yet, which is why it throws the following error:

image

My request
Could you please add support for require.context, since this would enable global auto registration which allows us to omit tedious component imports everywhere and make it even easier for beginners to get started with Vue (imo).

Codesandbox
https://codesandbox.io/s/github/MPH-Bali/green-village-project/tree/develop/public

Software Name/Version
Сodesandbox PROD-1523452809
Browser Chrome/65.0.3325.181
Operating System Windows/10.0.16299

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions