Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for require (0.16 sec)

  1. examples/misc-examples/require.js

    var util = require('util');
    
    console.log(util.inspect(require.main));
    setInterval(function() {
      console.log(util.inspect(require.main));
    JavaScript
    - Registered: 2020-12-02 09:50
    - Last Modified: 2018-01-24 11:43
    - 151 bytes
    - Viewed (0)
  2. test/integration/options/require.spec.js

            runMochaForHookOutput([
              '--require=' +
                require.resolve(
                  '../fixtures/options/require/root-hook-defs-c.fixture.js'
                ),
              '--require=' +
                require.resolve(
                  '../fixtures/options/require/root-hook-defs-d.fixture.js'
                ),
              require.resolve(
                '../fixtures/options/require/root-hook-test.fixture.js'
              )
            ]),
    JavaScript
    - Registered: 2020-09-07 12:38
    - Last Modified: 2020-06-05 21:23
    - 8.7K bytes
    - Viewed (0)
  3. test/ssr/require.test.js

    const path = require('path');
    
    try {
      process.env.VUE_ENV = 'server';
      require(path.join(process.env.PWD, './lib/index'));
      console.log('SSR require test PASS');
    } catch (e) {
      console.error('SSR require test error');
      throw Error(e);
    JavaScript
    - Registered: 2020-11-29 12:44
    - Last Modified: 2019-10-31 07:06
    - 242 bytes
    - Viewed (0)
  4. src/assets/js/require.min.js

    0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,i,r){var n,o,a=defContextName;return isArray(e)||"string"==typeof e||(o=e,isArray(t)?(e=t,t=i,i=r):e=[]),o&&o.context&&(a=o.context),(n=getOwn(contexts,a))||(n=contexts[a]=req.s.newContext(a)),o&&n.configure(o),n.require(e,t,i)},req.config=function(e){return req(e)},req.nextTick=void 0!==setTimeout?function(e){setTi...
    JavaScript
    - Registered: 2020-11-29 16:29
    - Last Modified: 2018-02-22 19:04
    - 17.3K bytes
    - Viewed (0)
  5. benchmark/local-require

    #!/usr/bin/env ruby
    # frozen_string_literal: true
    
    require 'benchmark/ips'
    require 'jekyll'
    require 'json'
    
    DATA = {"foo"=>"bar", "alpha"=>{"beta"=>"gamma"}, "lipsum"=>["lorem", "ipsum", "dolor"]}
    
    def local_require
      require 'json'
      JSON.pretty_generate(DATA)
    end
    
    def global_require
      JSON.pretty_generate(DATA)
    end
    
    def graceful_require
      Jekyll::External.require_with_graceful_fail("json")
      JSON.pretty_generate(DATA)
    Shell Script
    - Registered: 2020-12-01 01:54
    - Last Modified: 2018-04-10 15:00
    - 613 bytes
    - Viewed (0)
  6. dist/assets/js/require.min.js

    0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,i,r){var n,o,a=defContextName;return isArray(e)||"string"==typeof e||(o=e,isArray(t)?(e=t,t=i,i=r):e=[]),o&&o.context&&(a=o.context),(n=getOwn(contexts,a))||(n=contexts[a]=req.s.newContext(a)),o&&n.configure(o),n.require(e,t,i)},req.config=function(e){return req(e)},req.nextTick=void 0!==setTimeout?function(e){setTi...
    JavaScript
    - Registered: 2020-11-29 16:29
    - Last Modified: 2018-02-26 13:11
    - 17.3K bytes
    - Viewed (0)
  7. packages/@vue/cli-plugin-babel/codemods/__testfixtures__/require.output.js

    const config = {
      presets: [
        [require('@vue/cli-plugin-babel/preset'), {
          polyfills: []
        }]
      ]
    }
    
    JavaScript
    - Registered: 2020-12-01 23:15
    - Last Modified: 2019-09-30 10:18
    - 136 bytes
    - Viewed (0)
  8. test/require/require.spec.js

    'use strict';
    
    describe('require test', function() {
      it('should require args in order', function() {
        var req = global.required;
        expect(req.indexOf('a.js'), 'to be', 0);
        expect(req.indexOf('b.coffee'), 'to be', 1);
        expect(req.indexOf('c.js'), 'to be', 2);
        expect(req.indexOf('d.coffee'), 'to be', 3);
      });
    JavaScript
    - Registered: 2020-11-30 12:38
    - Last Modified: 2018-05-08 17:49
    - 332 bytes
    - Viewed (0)
  9. test/cases/cjs-tree-shaking/exports/require-default.js

    const ModuleExportsDefaultTest = require("./module-exports-default").default;
    const Test1 = require("./exports-default?1").default;
    import Test2 from "./exports-default?2";
    const Test3 = require("./exports-default-flagged?3").default;
    import Test4 from "./exports-default-flagged?4";
    const Test5 = require("./exports-default-bailout?5").default;
    import Test6 from "./exports-default-bailout?6";
    const Test7 = require("./exports-default-bailout-flagged?7").default;
    JavaScript
    - Registered: 2020-11-29 10:01
    - Last Modified: 2020-04-22 19:01
    - 1.2K bytes
    - Viewed (0)
  10. tools/static-assets/server/npm-require.js

    var assert = require("assert");
    var fs = require("fs");
    var path = require("path");
    var _ = require('underscore');
    var files = require('./mini-files');
    var serverJson = require("./server-json.js");
    var topLevelIdPattern = /^[^./]/;
    
    function statOrNull(path) {
      try {
        return fs.statSync(path);
      } catch (e) {
        return null;
      }
    }
    
    function findAppDirHelper(absOSPath) {
      if (fs.statSync(absOSPath).isDirectory() &&
    JavaScript
    - Registered: 2020-12-02 22:11
    - Last Modified: 2019-07-04 18:43
    - 5.3K bytes
    - Viewed (0)
Back to top