pulse-js-framework 1.4.1 → 1.4.3
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 +414 -414
- package/cli/analyze.js +499 -499
- package/cli/build.js +341 -341
- package/cli/dev.js +3 -3
- package/cli/format.js +704 -704
- package/cli/index.js +398 -398
- package/cli/lint.js +642 -642
- package/cli/utils/file-utils.js +298 -298
- package/compiler/lexer.js +766 -766
- package/compiler/parser.js +1797 -1797
- package/compiler/transformer.js +1332 -1332
- package/index.js +1 -1
- package/loader/vite-plugin.js +1 -1
- package/package.json +68 -68
- package/runtime/router.js +596 -596
package/cli/dev.js
CHANGED
|
@@ -79,7 +79,7 @@ export async function startDevServer(args) {
|
|
|
79
79
|
try {
|
|
80
80
|
const source = readFileSync(filePath, 'utf-8');
|
|
81
81
|
const result = compile(source, {
|
|
82
|
-
runtime: '/node_modules/pulse-framework/runtime/index.js'
|
|
82
|
+
runtime: '/node_modules/pulse-js-framework/runtime/index.js'
|
|
83
83
|
});
|
|
84
84
|
|
|
85
85
|
if (result.success) {
|
|
@@ -108,8 +108,8 @@ export async function startDevServer(args) {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
// Handle node_modules
|
|
111
|
-
if (pathname.startsWith('/node_modules/pulse-framework/')) {
|
|
112
|
-
const modulePath = join(root, '..', 'pulse', pathname.replace('/node_modules/pulse-framework/', ''));
|
|
111
|
+
if (pathname.startsWith('/node_modules/pulse-js-framework/')) {
|
|
112
|
+
const modulePath = join(root, '..', 'pulse', pathname.replace('/node_modules/pulse-js-framework/', ''));
|
|
113
113
|
if (existsSync(modulePath)) {
|
|
114
114
|
const content = readFileSync(modulePath, 'utf-8');
|
|
115
115
|
res.writeHead(200, { 'Content-Type': 'application/javascript' });
|