Skip to content

Suggestion: wrap only specific chunk #1

@mauron85

Description

@mauron85

It would nice if only specific entry/chunk can be wrapped. It allows parallel loading of pollyfils and main index.js.

EG.

  entry: {
    pollyfils: './src/pollyfils.js',
    index: ['./src/index.js']
  },
  plugins: [
    new EntryWrap('index', 'function run() {', '})')
   ]

HTML

<script src="pollyfils.js"></script>
<script src="index.js"></script>
<script>run()</script>

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