Releases: morganney/magic-comments-loader
Releases · morganney/magic-comments-loader
Release v1.3.2
- Fixes a bug where imports inside strings were not ignored.
// This will be ignored const str = 'abc123 import("some/path")~xyz' // This will not be ignored (any string with a '$') const tmplStr = `abc123~${import('some/module')}~xyz`
Release v1.3.1
Fixes some breaking changes that were introduced in v1.3.0.
- Restores ability to disable comments by setting them to
false, e.g.webpackChunkName: false - Restores ability to set
webpackModeto a string, and when usingconfigto setconfig.modeto a string - Improves regex in regards to detecting dynamic imports behind comments
- Updates the docs in the README
Release v1.3.0
- Adds
webpackExportsoption - Adds
matchoption to configure which paths are matched against provided globs (module or import) - Adds
Functionvalues for comment options to better control comment usage - Improves the documentation in the README
Release v1.2.0
webpackChunkNamenow supports globs likewebpackChunkName: 'src/**/*.js'to activatewebpackPreloadis addedwebpackPrefetchis added- Schema validation on comment configurations is added
Release v1.1.0
- Adds
webpackIgnore
Release v1.0.0
- Add
webpackChunkName - Add
webpackMode