yarn imports-loader 1.0.0
v1.0.0

latest releases: 5.0.0, 4.0.1, 4.0.0...
3 years ago

1.0.0 (2020-06-17)

⚠ BREAKING CHANGES

  • minimum supported Node.js version is 10.13
  • minimum supported webpack version is 4
  • inline syntax was changed, please read
  • list of imported modules moved to the imports option, please read
  • wrapper moved to the wrapper option, please read
  • custom variables moved to the additionalCode option, please read
  • generates ES module default import by default (import Foo from 'foo';)

Features

  • validate options
  • support webpack 5
  • implemented the type option (imports can be CommonsJS or ES module format)
  • implemented the ability to generate multiple import in CommonJS or ES module format
  • improved support of inline usage
  • allowed to adding arguments for wrapper
  • allowed to inject any custom code

Bug Fixes

  • do not crash on invalid inline syntax
  • respect 'use strict';

Don't miss a new imports-loader release

NewReleases is sending notifications on new releases.