@embroider/addon-dev 4.1.4-unstable.c5f8d55 → 4.1.4-unstable.d6b87d7
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": "@embroider/addon-dev",
|
|
3
|
-
"version": "4.1.4-unstable.
|
|
3
|
+
"version": "4.1.4-unstable.d6b87d7",
|
|
4
4
|
"description": "Utilities for addon authors",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"test": "jest"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@embroider/core": "3.4.4-unstable.
|
|
29
|
+
"@embroider/core": "3.4.4-unstable.d6b87d7",
|
|
30
30
|
"@rollup/pluginutils": "^4.1.1",
|
|
31
|
-
"content-tag": "^
|
|
31
|
+
"content-tag": "^2.0.1",
|
|
32
32
|
"fs-extra": "^10.0.0",
|
|
33
33
|
"minimatch": "^3.0.4",
|
|
34
34
|
"rollup-plugin-copy-assets": "^2.0.3",
|
package/src/rollup-gjs-plugin.js
CHANGED
|
@@ -6,7 +6,7 @@ const content_tag_1 = require("content-tag");
|
|
|
6
6
|
const PLUGIN_NAME = 'rollup-gjs-plugin';
|
|
7
7
|
const processor = new content_tag_1.Preprocessor();
|
|
8
8
|
// import { parse as pathParse } from 'path';
|
|
9
|
-
function rollupGjsPlugin() {
|
|
9
|
+
function rollupGjsPlugin({ inline_source_map } = { inline_source_map: false }) {
|
|
10
10
|
return {
|
|
11
11
|
name: PLUGIN_NAME,
|
|
12
12
|
load(id) {
|
|
@@ -14,7 +14,10 @@ function rollupGjsPlugin() {
|
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
let input = (0, fs_1.readFileSync)(id, 'utf8');
|
|
17
|
-
let code = processor.process(input,
|
|
17
|
+
let code = processor.process(input, {
|
|
18
|
+
filename: id,
|
|
19
|
+
inline_source_map,
|
|
20
|
+
});
|
|
18
21
|
return {
|
|
19
22
|
code,
|
|
20
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup-gjs-plugin.js","sourceRoot":"","sources":["rollup-gjs-plugin.ts"],"names":[],"mappings":";;AAAA,qDAAmD;AAEnD,2BAAkC;AAClC,6CAA2C;AAE3C,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAExC,MAAM,SAAS,GAAG,IAAI,0BAAY,EAAE,CAAC;AACrC,6CAA6C;AAE7C,SAAwB,eAAe;
|
|
1
|
+
{"version":3,"file":"rollup-gjs-plugin.js","sourceRoot":"","sources":["rollup-gjs-plugin.ts"],"names":[],"mappings":";;AAAA,qDAAmD;AAEnD,2BAAkC;AAClC,6CAA2C;AAE3C,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAExC,MAAM,SAAS,GAAG,IAAI,0BAAY,EAAE,CAAC;AACrC,6CAA6C;AAE7C,SAAwB,eAAe,CACrC,EAAE,iBAAiB,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE;IAEpD,OAAO;QACL,IAAI,EAAE,WAAW;QAEjB,IAAI,CAAC,EAAU;YACb,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE;gBAClB,OAAO,IAAI,CAAC;aACb;YACD,IAAI,KAAK,GAAG,IAAA,iBAAY,EAAC,EAAE,EAAE,MAAM,CAAC,CAAC;YACrC,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE;gBAClC,QAAQ,EAAE,EAAE;gBACZ,iBAAiB;aAClB,CAAC,CAAC;YACH,OAAO;gBACL,IAAI;aACL,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AApBD,kCAoBC;AAED,MAAM,SAAS,GAAG,IAAA,0BAAY,EAAC,cAAc,CAAC,CAAC","sourcesContent":["import { createFilter } from '@rollup/pluginutils';\nimport type { Plugin } from 'rollup';\nimport { readFileSync } from 'fs';\nimport { Preprocessor } from 'content-tag';\n\nconst PLUGIN_NAME = 'rollup-gjs-plugin';\n\nconst processor = new Preprocessor();\n// import { parse as pathParse } from 'path';\n\nexport default function rollupGjsPlugin(\n { inline_source_map } = { inline_source_map: false }\n): Plugin {\n return {\n name: PLUGIN_NAME,\n\n load(id: string) {\n if (!gjsFilter(id)) {\n return null;\n }\n let input = readFileSync(id, 'utf8');\n let code = processor.process(input, {\n filename: id,\n inline_source_map,\n });\n return {\n code,\n };\n },\n };\n}\n\nconst gjsFilter = createFilter('**/*.g{j,t}s');\n"]}
|