Grunt plugin (v0.2.0) that wraps CommonJS and AMD modules generated by es6-module-transpiler so they can be required by their name rather than requiring `.default`. It helps transition from ES6 modules to CommonJS/AMD without changing consumer code. The plugin is minimal, specific to the es6-module-transpiler output, and provides a `type` option to choose between CJS and AMD wrapping. Release cadence is unknown; last release was 2014. It has no known alternatives for this exact use case.
npm install grunt-es6-module-wrap-defaultNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers the Grunt task and configures it to wrap CJS files from a source directory to an output directory, enabling require('name') instead of require('name').default.
Verify that your modules were generated by es6-module-transpiler.
Migrate to Babel or TypeScript, which handle imports directly and do not require wrapping.
Ensure the property name exactly matches 'es6_module_wrap_default'.
Double-check file glob patterns and cwd.
Add `grunt.loadNpmTasks('grunt-es6-module-wrap-default');` to your Gruntfile.Ensure your Gruntfile has a property named exactly 'es6_module_wrap_default' with valid options.
Check the file paths and cwd in the files configuration.