Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Webpack bundling for SystemJS

License

NotificationsYou must be signed in to change notification settings

guybedford/systemjs-webpack-plugin

Repository files navigation

Allows Webpack bundles to register specified public modules into the SystemJS loader registry under custom public names.

Also supports configuring SystemJS to automatically load Webpack chunks on-demand whenSystem.import is called to lazy load modules.

This is an experimental integration project, without any support guarantees yet.

Example Configuration

varSystemJSRegisterPublicModules=require('webpack-systemjs-plugin');module.exports={entry:'./main.js',plugins:[newSystemJSRegisterPublicModules({// automatically configure SystemJS to load webpack chunks (defaults to true)bundlesConfigForChunks:true,// select which modules to expose as public modulesregisterModules:[// "default" filters provided are "local" and "public"{filter:'public'},// keyname allows a custom naming system for public modules{filter:'local',keyname:'app/[relPath]'},// keyname can be a function{filter:'public',keyname:(module)=>'publicModule-'+module.id},// filter can also be a function{filter:(m)=>m.relPath.match(/src/),keyname:'random-naming-system-[id]'}]})],output:{filename:'out.js'}};

public modules are main modules from the node_modules folder.

local modules are modules not within node_modules.

About

Webpack bundling for SystemJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

    Packages

    No packages published

    [8]ページ先頭

    ©2009-2025 Movatter.jp