Skip to content

Releases: morganney/magic-comments-loader

Release v1.3.2

13 Sep 00:01
a4e3a15

Choose a tag to compare

  • 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

12 Sep 20:09
53f58a9

Choose a tag to compare

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 webpackMode to a string, and when using config to set config.mode to a string
  • Improves regex in regards to detecting dynamic imports behind comments
  • Updates the docs in the README

Release v1.3.0

12 Sep 04:12
8d60a6d

Choose a tag to compare

  • Adds webpackExports option
  • Adds match option to configure which paths are matched against provided globs (module or import)
  • Adds Function values for comment options to better control comment usage
  • Improves the documentation in the README

Release v1.2.0

11 Sep 04:56
e6a8de3

Choose a tag to compare

  • webpackChunkName now supports globs like webpackChunkName: 'src/**/*.js' to activate
  • webpackPreload is added
  • webpackPrefetch is added
  • Schema validation on comment configurations is added

Release v1.1.0

08 Sep 15:18

Choose a tag to compare

  • Adds webpackIgnore

Release v1.0.0

08 Sep 15:17

Choose a tag to compare

  • Add webpackChunkName
  • Add webpackMode