unplugin-atscript 0.1.39 → 0.1.41
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/README.md +4 -4
- package/dist/esbuild.cjs +4 -1
- package/dist/esbuild.mjs +4 -1
- package/dist/farm.cjs +4 -1
- package/dist/farm.mjs +4 -1
- package/dist/index.cjs +4 -1
- package/dist/index.mjs +4 -1
- package/dist/rolldown.cjs +4 -1
- package/dist/rolldown.d.ts +2 -2
- package/dist/rolldown.mjs +4 -1
- package/dist/rollup.cjs +4 -1
- package/dist/rollup.mjs +4 -1
- package/dist/rspack.cjs +4 -1
- package/dist/rspack.mjs +4 -1
- package/dist/vite.cjs +4 -1
- package/dist/vite.d.ts +2 -2
- package/dist/vite.mjs +4 -1
- package/dist/webpack.cjs +4 -1
- package/dist/webpack.mjs +4 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://atscript.
|
|
2
|
+
<img src="https://atscript.dev/logo.svg" alt="Atscript" width="120" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">unplugin-atscript</h1>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<a href="https://atscript.
|
|
12
|
+
<a href="https://atscript.dev">Documentation</a> · <a href="https://atscript.dev/packages/typescript/build-setup">Build Setup Guide</a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
---
|
|
@@ -49,8 +49,8 @@ Also available: `unplugin-atscript/esbuild`, `unplugin-atscript/rolldown`, `unpl
|
|
|
49
49
|
|
|
50
50
|
## Documentation
|
|
51
51
|
|
|
52
|
-
- [Build Setup Guide](https://atscript.
|
|
53
|
-
- [Full Documentation](https://atscript.
|
|
52
|
+
- [Build Setup Guide](https://atscript.dev/packages/typescript/build-setup)
|
|
53
|
+
- [Full Documentation](https://atscript.dev)
|
|
54
54
|
|
|
55
55
|
## License
|
|
56
56
|
|
package/dist/esbuild.cjs
CHANGED
|
@@ -41,7 +41,10 @@ const unpluginFactory = (opts) => {
|
|
|
41
41
|
return {
|
|
42
42
|
name: "unplugin-atscript",
|
|
43
43
|
resolveId(id, importer) {
|
|
44
|
-
if (importer && id.endsWith(".as"))
|
|
44
|
+
if (importer && id.endsWith(".as")) {
|
|
45
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
46
|
+
return path.default.join(path.default.dirname(importer), id);
|
|
47
|
+
}
|
|
45
48
|
},
|
|
46
49
|
async load(id) {
|
|
47
50
|
if (id.endsWith(".as")) {
|
package/dist/esbuild.mjs
CHANGED
|
@@ -17,7 +17,10 @@ const unpluginFactory = (opts) => {
|
|
|
17
17
|
return {
|
|
18
18
|
name: "unplugin-atscript",
|
|
19
19
|
resolveId(id, importer) {
|
|
20
|
-
if (importer && id.endsWith(".as"))
|
|
20
|
+
if (importer && id.endsWith(".as")) {
|
|
21
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
22
|
+
return path.join(path.dirname(importer), id);
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
async load(id) {
|
|
23
26
|
if (id.endsWith(".as")) {
|
package/dist/farm.cjs
CHANGED
|
@@ -41,7 +41,10 @@ const unpluginFactory = (opts) => {
|
|
|
41
41
|
return {
|
|
42
42
|
name: "unplugin-atscript",
|
|
43
43
|
resolveId(id, importer) {
|
|
44
|
-
if (importer && id.endsWith(".as"))
|
|
44
|
+
if (importer && id.endsWith(".as")) {
|
|
45
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
46
|
+
return path.default.join(path.default.dirname(importer), id);
|
|
47
|
+
}
|
|
45
48
|
},
|
|
46
49
|
async load(id) {
|
|
47
50
|
if (id.endsWith(".as")) {
|
package/dist/farm.mjs
CHANGED
|
@@ -17,7 +17,10 @@ const unpluginFactory = (opts) => {
|
|
|
17
17
|
return {
|
|
18
18
|
name: "unplugin-atscript",
|
|
19
19
|
resolveId(id, importer) {
|
|
20
|
-
if (importer && id.endsWith(".as"))
|
|
20
|
+
if (importer && id.endsWith(".as")) {
|
|
21
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
22
|
+
return path.join(path.dirname(importer), id);
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
async load(id) {
|
|
23
26
|
if (id.endsWith(".as")) {
|
package/dist/index.cjs
CHANGED
|
@@ -42,7 +42,10 @@ const unpluginFactory = (opts) => {
|
|
|
42
42
|
return {
|
|
43
43
|
name: "unplugin-atscript",
|
|
44
44
|
resolveId(id, importer) {
|
|
45
|
-
if (importer && id.endsWith(".as"))
|
|
45
|
+
if (importer && id.endsWith(".as")) {
|
|
46
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
47
|
+
return path.default.join(path.default.dirname(importer), id);
|
|
48
|
+
}
|
|
46
49
|
},
|
|
47
50
|
async load(id) {
|
|
48
51
|
if (id.endsWith(".as")) {
|
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,10 @@ const unpluginFactory = (opts) => {
|
|
|
17
17
|
return {
|
|
18
18
|
name: "unplugin-atscript",
|
|
19
19
|
resolveId(id, importer) {
|
|
20
|
-
if (importer && id.endsWith(".as"))
|
|
20
|
+
if (importer && id.endsWith(".as")) {
|
|
21
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
22
|
+
return path.join(path.dirname(importer), id);
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
async load(id) {
|
|
23
26
|
if (id.endsWith(".as")) {
|
package/dist/rolldown.cjs
CHANGED
|
@@ -41,7 +41,10 @@ const unpluginFactory = (opts) => {
|
|
|
41
41
|
return {
|
|
42
42
|
name: "unplugin-atscript",
|
|
43
43
|
resolveId(id, importer) {
|
|
44
|
-
if (importer && id.endsWith(".as"))
|
|
44
|
+
if (importer && id.endsWith(".as")) {
|
|
45
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
46
|
+
return path.default.join(path.default.dirname(importer), id);
|
|
47
|
+
}
|
|
45
48
|
},
|
|
46
49
|
async load(id) {
|
|
47
50
|
if (id.endsWith(".as")) {
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as rolldown from 'rolldown';
|
|
2
2
|
|
|
3
3
|
interface atscriptPluginOptions {
|
|
4
4
|
/**
|
|
@@ -8,6 +8,6 @@ interface atscriptPluginOptions {
|
|
|
8
8
|
strict?: boolean;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
declare const _default: (options?: atscriptPluginOptions | undefined) =>
|
|
11
|
+
declare const _default: (options?: atscriptPluginOptions | undefined) => rolldown.Plugin<any> | rolldown.Plugin<any>[];
|
|
12
12
|
|
|
13
13
|
export { _default as default };
|
package/dist/rolldown.mjs
CHANGED
|
@@ -17,7 +17,10 @@ const unpluginFactory = (opts) => {
|
|
|
17
17
|
return {
|
|
18
18
|
name: "unplugin-atscript",
|
|
19
19
|
resolveId(id, importer) {
|
|
20
|
-
if (importer && id.endsWith(".as"))
|
|
20
|
+
if (importer && id.endsWith(".as")) {
|
|
21
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
22
|
+
return path.join(path.dirname(importer), id);
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
async load(id) {
|
|
23
26
|
if (id.endsWith(".as")) {
|
package/dist/rollup.cjs
CHANGED
|
@@ -41,7 +41,10 @@ const unpluginFactory = (opts) => {
|
|
|
41
41
|
return {
|
|
42
42
|
name: "unplugin-atscript",
|
|
43
43
|
resolveId(id, importer) {
|
|
44
|
-
if (importer && id.endsWith(".as"))
|
|
44
|
+
if (importer && id.endsWith(".as")) {
|
|
45
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
46
|
+
return path.default.join(path.default.dirname(importer), id);
|
|
47
|
+
}
|
|
45
48
|
},
|
|
46
49
|
async load(id) {
|
|
47
50
|
if (id.endsWith(".as")) {
|
package/dist/rollup.mjs
CHANGED
|
@@ -17,7 +17,10 @@ const unpluginFactory = (opts) => {
|
|
|
17
17
|
return {
|
|
18
18
|
name: "unplugin-atscript",
|
|
19
19
|
resolveId(id, importer) {
|
|
20
|
-
if (importer && id.endsWith(".as"))
|
|
20
|
+
if (importer && id.endsWith(".as")) {
|
|
21
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
22
|
+
return path.join(path.dirname(importer), id);
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
async load(id) {
|
|
23
26
|
if (id.endsWith(".as")) {
|
package/dist/rspack.cjs
CHANGED
|
@@ -41,7 +41,10 @@ const unpluginFactory = (opts) => {
|
|
|
41
41
|
return {
|
|
42
42
|
name: "unplugin-atscript",
|
|
43
43
|
resolveId(id, importer) {
|
|
44
|
-
if (importer && id.endsWith(".as"))
|
|
44
|
+
if (importer && id.endsWith(".as")) {
|
|
45
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
46
|
+
return path.default.join(path.default.dirname(importer), id);
|
|
47
|
+
}
|
|
45
48
|
},
|
|
46
49
|
async load(id) {
|
|
47
50
|
if (id.endsWith(".as")) {
|
package/dist/rspack.mjs
CHANGED
|
@@ -17,7 +17,10 @@ const unpluginFactory = (opts) => {
|
|
|
17
17
|
return {
|
|
18
18
|
name: "unplugin-atscript",
|
|
19
19
|
resolveId(id, importer) {
|
|
20
|
-
if (importer && id.endsWith(".as"))
|
|
20
|
+
if (importer && id.endsWith(".as")) {
|
|
21
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
22
|
+
return path.join(path.dirname(importer), id);
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
async load(id) {
|
|
23
26
|
if (id.endsWith(".as")) {
|
package/dist/vite.cjs
CHANGED
|
@@ -41,7 +41,10 @@ const unpluginFactory = (opts) => {
|
|
|
41
41
|
return {
|
|
42
42
|
name: "unplugin-atscript",
|
|
43
43
|
resolveId(id, importer) {
|
|
44
|
-
if (importer && id.endsWith(".as"))
|
|
44
|
+
if (importer && id.endsWith(".as")) {
|
|
45
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
46
|
+
return path.default.join(path.default.dirname(importer), id);
|
|
47
|
+
}
|
|
45
48
|
},
|
|
46
49
|
async load(id) {
|
|
47
50
|
if (id.endsWith(".as")) {
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _unplugin from 'unplugin';
|
|
2
2
|
|
|
3
3
|
interface atscriptPluginOptions {
|
|
4
4
|
/**
|
|
@@ -8,6 +8,6 @@ interface atscriptPluginOptions {
|
|
|
8
8
|
strict?: boolean;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
declare const _default: (options?: atscriptPluginOptions | undefined) =>
|
|
11
|
+
declare const _default: (options?: atscriptPluginOptions | undefined) => _unplugin.VitePlugin<any> | _unplugin.VitePlugin<any>[];
|
|
12
12
|
|
|
13
13
|
export { _default as default };
|
package/dist/vite.mjs
CHANGED
|
@@ -17,7 +17,10 @@ const unpluginFactory = (opts) => {
|
|
|
17
17
|
return {
|
|
18
18
|
name: "unplugin-atscript",
|
|
19
19
|
resolveId(id, importer) {
|
|
20
|
-
if (importer && id.endsWith(".as"))
|
|
20
|
+
if (importer && id.endsWith(".as")) {
|
|
21
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
22
|
+
return path.join(path.dirname(importer), id);
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
async load(id) {
|
|
23
26
|
if (id.endsWith(".as")) {
|
package/dist/webpack.cjs
CHANGED
|
@@ -41,7 +41,10 @@ const unpluginFactory = (opts) => {
|
|
|
41
41
|
return {
|
|
42
42
|
name: "unplugin-atscript",
|
|
43
43
|
resolveId(id, importer) {
|
|
44
|
-
if (importer && id.endsWith(".as"))
|
|
44
|
+
if (importer && id.endsWith(".as")) {
|
|
45
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
46
|
+
return path.default.join(path.default.dirname(importer), id);
|
|
47
|
+
}
|
|
45
48
|
},
|
|
46
49
|
async load(id) {
|
|
47
50
|
if (id.endsWith(".as")) {
|
package/dist/webpack.mjs
CHANGED
|
@@ -17,7 +17,10 @@ const unpluginFactory = (opts) => {
|
|
|
17
17
|
return {
|
|
18
18
|
name: "unplugin-atscript",
|
|
19
19
|
resolveId(id, importer) {
|
|
20
|
-
if (importer && id.endsWith(".as"))
|
|
20
|
+
if (importer && id.endsWith(".as")) {
|
|
21
|
+
if (!id.startsWith(".") && !id.startsWith("/")) return null;
|
|
22
|
+
return path.join(path.dirname(importer), id);
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
async load(id) {
|
|
23
26
|
if (id.endsWith(".as")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-atscript",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"description": "Atscript: Configuration and build plugins.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"annotations",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"vitest": "3.2.4"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@atscript/core": "^0.1.
|
|
84
|
-
"@atscript/typescript": "^0.1.
|
|
83
|
+
"@atscript/core": "^0.1.41",
|
|
84
|
+
"@atscript/typescript": "^0.1.41"
|
|
85
85
|
},
|
|
86
86
|
"build": [
|
|
87
87
|
{},
|