@lynx-js/template-webpack-plugin-canary 0.6.3-canary-20250302-1abf8f01
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/CHANGELOG.md +124 -0
- package/LICENSE +202 -0
- package/README.md +4 -0
- package/lib/LynxAsyncChunksRuntimeModule.d.ts +4 -0
- package/lib/LynxAsyncChunksRuntimeModule.js +30 -0
- package/lib/LynxEncodePlugin.d.ts +105 -0
- package/lib/LynxEncodePlugin.js +192 -0
- package/lib/LynxTemplatePlugin.d.ts +329 -0
- package/lib/LynxTemplatePlugin.js +486 -0
- package/lib/css/ast.d.ts +3 -0
- package/lib/css/ast.js +11 -0
- package/lib/css/cssChunksToMap.d.ts +6 -0
- package/lib/css/cssChunksToMap.js +27 -0
- package/lib/css/debundle.d.ts +1 -0
- package/lib/css/debundle.js +86 -0
- package/lib/css/encode.d.ts +17 -0
- package/lib/css/encode.js +36 -0
- package/lib/css/index.d.ts +3 -0
- package/lib/css/index.js +6 -0
- package/lib/css/plugins/index.d.ts +1 -0
- package/lib/css/plugins/index.js +5 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +13 -0
- package/package.json +51 -0
package/lib/css/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
export { csstree, Plugins, parse } from '@lynx-js/css-serializer';
|
|
5
|
+
export { cssChunksToMap } from './cssChunksToMap.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Plugins as parserPlugins } from '@lynx-js/css-serializer';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
export { Plugins as parserPlugins } from '@lynx-js/css-serializer';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
*
|
|
4
|
+
* A webpack plugin that simplifies creation of `template.js` files to serve your bundles.
|
|
5
|
+
*/
|
|
6
|
+
export { LynxTemplatePlugin } from './LynxTemplatePlugin.js';
|
|
7
|
+
export type { LynxTemplatePluginOptions, TemplateHooks, } from './LynxTemplatePlugin.js';
|
|
8
|
+
export { LynxEncodePlugin } from './LynxEncodePlugin.js';
|
|
9
|
+
export type { LynxEncodePluginOptions } from './LynxEncodePlugin.js';
|
|
10
|
+
export * as CSSPlugins from './css/plugins/index.js';
|
|
11
|
+
export * as CSS from './css/index.js';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2024 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
/**
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*
|
|
7
|
+
* A webpack plugin that simplifies creation of `template.js` files to serve your bundles.
|
|
8
|
+
*/
|
|
9
|
+
export { LynxTemplatePlugin } from './LynxTemplatePlugin.js';
|
|
10
|
+
export { LynxEncodePlugin } from './LynxEncodePlugin.js';
|
|
11
|
+
export * as CSSPlugins from './css/plugins/index.js';
|
|
12
|
+
export * as CSS from './css/index.js';
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lynx-js/template-webpack-plugin-canary",
|
|
3
|
+
"version": "0.6.3-canary-20250302-1abf8f01",
|
|
4
|
+
"description": "Simplifies creation of Lynx template files to serve your webpack bundles",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"webpack",
|
|
7
|
+
"Lynx"
|
|
8
|
+
],
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Qingyu Wang",
|
|
12
|
+
"email": "colinwang.0616@gmail.com"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./lib/index.d.ts",
|
|
18
|
+
"import": "./lib/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./package.json": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
"types": "./lib/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"lib",
|
|
25
|
+
"!lib/**/*.js.map",
|
|
26
|
+
"CHANGELOG.md",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.1",
|
|
31
|
+
"@lynx-js/tasm": "0.0.5",
|
|
32
|
+
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0.4",
|
|
33
|
+
"@rspack/lite-tapable": "1.0.1",
|
|
34
|
+
"css-tree": "^3.1.0",
|
|
35
|
+
"object.groupby": "^1.0.3"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@microsoft/api-extractor": "7.51.0",
|
|
39
|
+
"@types/css-tree": "^2.3.10",
|
|
40
|
+
"@types/object.groupby": "^1.0.4",
|
|
41
|
+
"webpack": "^5.98.0",
|
|
42
|
+
"@lynx-js/test-tools": "0.0.0"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"api-extractor": "api-extractor run --verbose",
|
|
49
|
+
"test": "pnpm vitest --project webpack/template"
|
|
50
|
+
}
|
|
51
|
+
}
|