diff --git a/asset-pipeline-core/src/main/groovy/asset/pipeline/JsAssetFile.groovy b/asset-pipeline-core/src/main/groovy/asset/pipeline/JsAssetFile.groovy index c17c6f0f..2915bb43 100644 --- a/asset-pipeline-core/src/main/groovy/asset/pipeline/JsAssetFile.groovy +++ b/asset-pipeline-core/src/main/groovy/asset/pipeline/JsAssetFile.groovy @@ -32,7 +32,7 @@ import groovy.transform.CompileStatic @CompileStatic class JsAssetFile extends AbstractAssetFile { static final List contentType = ['application/javascript', 'application/x-javascript','text/javascript'] - static List extensions = ['js'] + static List extensions = ['js','cjs'] static String compiledExtension = 'js' static processors = [JsProcessor,JsNodeInjectProcessor,BabelJsProcessor,JsRequireProcessor] Pattern directivePattern = ~/(?m)^\/\/=(.*)/ diff --git a/asset-pipeline-docs/src/asciidoc/introduction.adoc b/asset-pipeline-docs/src/asciidoc/introduction.adoc index 278faf2e..173f171a 100644 --- a/asset-pipeline-docs/src/asciidoc/introduction.adoc +++ b/asset-pipeline-docs/src/asciidoc/introduction.adoc @@ -7,6 +7,8 @@ This guide documents configuration and usage examples of the asset-pipeline plug === Release History +* April 10, 2022 +** - 3.4.6 - .cjs Extension now considered a valid javascript extension * April 8, 2022 ** - 3.4.5 - package.json detection was happening post looking for index.js Causing confusion between ES2017 modules and CJS * March 22, 2022 diff --git a/gradle.properties b/gradle.properties index 1ca543f7..4ca4c1be 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version=3.4.5 +version=3.4.6 org.gradle.warning.mode=none