mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fix 'marko is using deprecated features' message (#1250)
This commit is contained in:
parent
354576ba29
commit
ecae71cde2
@ -1,7 +1,7 @@
|
||||
module-code(function(require) {
|
||||
<module-code(function(require) {
|
||||
var isDebug = require('./env').isDebug;
|
||||
return `module.exports = require("./${isDebug ? 'src' : 'dist'}/compiler");\n`;
|
||||
});
|
||||
})/>
|
||||
|
||||
// What's going on here? We are using Marko to do JavaScript code generation
|
||||
// during the module bundling phase to conditionally export either the
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
module-code(function(require) {
|
||||
<module-code(function(require) {
|
||||
var isDebug = require('./env').isDebug;
|
||||
return `module.exports = require("./${isDebug ? 'src' : 'dist'}/components");\n`;
|
||||
});
|
||||
})/>
|
||||
|
||||
// What's going on here? We are using Marko to do JavaScript code generation
|
||||
// during the module bundling phase to conditionally export either the
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
module-code(function(require) {
|
||||
<module-code(function(require) {
|
||||
var isDebug = require('./env').isDebug;
|
||||
return `module.exports = require("./${isDebug ? 'src' : 'dist'}/index");\n`;
|
||||
});
|
||||
})/>
|
||||
|
||||
// What's going on here? We are using Marko to do JavaScript code generation
|
||||
// during the module bundling phase to conditionally export either the
|
||||
|
||||
10
jquery.marko
10
jquery.marko
@ -1,4 +1,10 @@
|
||||
module-code(function(require) {
|
||||
<module-code(function(require) {
|
||||
var isDebug = require('./env').isDebug;
|
||||
return `module.exports = require("./${isDebug ? 'src' : 'dist'}/components/jquery");\n`;
|
||||
});
|
||||
})/>
|
||||
|
||||
// What's going on here? We are using Marko to do JavaScript code generation
|
||||
// during the module bundling phase to conditionally export either the
|
||||
// "src" or the "dist" folder based on whether or not we are doing a
|
||||
// debug or non-debug build. We are using Marko since we know the Marko compiler
|
||||
// is enabled already (no extra babel transform required).
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
module-code(function(require) {
|
||||
<module-code(function(require) {
|
||||
var isDebug = require('./env').isDebug;
|
||||
return `module.exports = require("./${isDebug ? 'src' : 'dist'}/components/legacy");\n`;
|
||||
});
|
||||
})/>
|
||||
|
||||
// What's going on here? We are using Marko to do JavaScript code generation
|
||||
// during the module bundling phase to conditionally export either the
|
||||
|
||||
10
ready.marko
10
ready.marko
@ -1,4 +1,10 @@
|
||||
module-code(function(require) {
|
||||
<module-code(function(require) {
|
||||
var isDebug = require('./env').isDebug;
|
||||
return `module.exports = require("./${isDebug ? 'src' : 'dist'}/components/ready");\n`;
|
||||
});
|
||||
})/>
|
||||
|
||||
// What's going on here? We are using Marko to do JavaScript code generation
|
||||
// during the module bundling phase to conditionally export either the
|
||||
// "src" or the "dist" folder based on whether or not we are doing a
|
||||
// debug or non-debug build. We are using Marko since we know the Marko compiler
|
||||
// is enabled already (no extra babel transform required).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user