@11ty/eleventy-plugin-webc 0.9.4 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@11ty/eleventy-plugin-webc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "WebC support for Eleventy adds for Single File Web Components",
|
|
5
5
|
"main": "eleventyWebcPlugin.js",
|
|
6
6
|
"scripts": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@11ty/eleventy": "^2.0.0",
|
|
46
|
-
"@11ty/eleventy-plugin-bundle": "^1.0.
|
|
47
|
-
"@11ty/webc": "^0.
|
|
46
|
+
"@11ty/eleventy-plugin-bundle": "^1.0.4",
|
|
47
|
+
"@11ty/webc": "^0.10.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"ava": "^5.2.0",
|
|
51
|
-
"node-retrieve-globals": "^2.0.
|
|
51
|
+
"node-retrieve-globals": "^2.0.6"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -38,6 +38,11 @@ module.exports = function(eleventyConfig, options = {}) {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
+
let templateConfig;
|
|
42
|
+
eleventyConfig.on("eleventy.config", (cfg) => {
|
|
43
|
+
templateConfig = cfg;
|
|
44
|
+
});
|
|
45
|
+
|
|
41
46
|
// Deprecated (backwards compat only): this lives in @11ty/eleventy-plugin-bundle now
|
|
42
47
|
if(options.filters.css) {
|
|
43
48
|
eleventyConfig.addFilter(options.filters.css, (url, bucket) => {
|
|
@@ -105,7 +110,7 @@ module.exports = function(eleventyConfig, options = {}) {
|
|
|
105
110
|
let syntax = this["11ty:type"];
|
|
106
111
|
if(syntax) {
|
|
107
112
|
let fn = await CompileString(content, syntax, {
|
|
108
|
-
templateConfig
|
|
113
|
+
templateConfig
|
|
109
114
|
});
|
|
110
115
|
return fn(this);
|
|
111
116
|
}
|