@roots/bud-entrypoints
Advanced tools
Comparing version 2.0.6 to 2.1.1
@@ -1,9 +0,17 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.entrypoints = void 0; | ||
exports.entrypoints = function (options) { | ||
const entrypoints = this.extensions.get('@roots/bud-entrypoints'); | ||
entrypoints.setOptions(Object.assign(Object.assign({}, entrypoints.getOptions()), options)); | ||
return this; | ||
}; | ||
//# sourceMappingURL=entrypoints.js.map | ||
'use strict' | ||
Object.defineProperty(exports, '__esModule', {value: true}) | ||
exports.entrypoints = void 0 | ||
function entrypoints(options) { | ||
const entrypoints = this.extensions.get( | ||
'@roots/bud-entrypoints', | ||
) | ||
entrypoints.setOptions( | ||
Object.assign( | ||
Object.assign({}, entrypoints.getOptions()), | ||
options, | ||
), | ||
) | ||
return this | ||
} | ||
exports.entrypoints = entrypoints | ||
//# sourceMappingURL=entrypoints.js.map |
@@ -1,30 +0,56 @@ | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.options = exports.make = exports.api = void 0; | ||
const Entrypoints = __importStar(require("@roots/entrypoints-webpack-plugin")); | ||
exports.api = __importStar(require("./entrypoints")); | ||
exports.make = opts => new Entrypoints.Plugin(opts.getStore()); | ||
'use strict' | ||
var __createBinding = | ||
(this && this.__createBinding) || | ||
(Object.create | ||
? function (o, m, k, k2) { | ||
if (k2 === undefined) k2 = k | ||
Object.defineProperty(o, k2, { | ||
enumerable: true, | ||
get: function () { | ||
return m[k] | ||
}, | ||
}) | ||
} | ||
: function (o, m, k, k2) { | ||
if (k2 === undefined) k2 = k | ||
o[k2] = m[k] | ||
}) | ||
var __setModuleDefault = | ||
(this && this.__setModuleDefault) || | ||
(Object.create | ||
? function (o, v) { | ||
Object.defineProperty(o, 'default', { | ||
enumerable: true, | ||
value: v, | ||
}) | ||
} | ||
: function (o, v) { | ||
o['default'] = v | ||
}) | ||
var __importStar = | ||
(this && this.__importStar) || | ||
function (mod) { | ||
if (mod && mod.__esModule) return mod | ||
var result = {} | ||
if (mod != null) | ||
for (var k in mod) | ||
if ( | ||
k !== 'default' && | ||
Object.prototype.hasOwnProperty.call(mod, k) | ||
) | ||
__createBinding(result, mod, k) | ||
__setModuleDefault(result, mod) | ||
return result | ||
} | ||
Object.defineProperty(exports, '__esModule', {value: true}) | ||
exports.options = exports.make = exports.api = void 0 | ||
const Entrypoints = __importStar( | ||
require('@roots/entrypoints-webpack-plugin'), | ||
) | ||
exports.api = __importStar(require('./entrypoints')) | ||
exports.make = opts => new Entrypoints.Plugin(opts.getStore()) | ||
exports.options = { | ||
name: 'entrypoints.json', | ||
writeToFileEmit: true, | ||
}; | ||
//# sourceMappingURL=index.js.map | ||
name: 'entrypoints.json', | ||
writeToFileEmit: true, | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -1,6 +0,13 @@ | ||
export const entrypoints = function (options) { | ||
const entrypoints = this.extensions.get('@roots/bud-entrypoints'); | ||
entrypoints.setOptions(Object.assign(Object.assign({}, entrypoints.getOptions()), options)); | ||
return this; | ||
}; | ||
//# sourceMappingURL=entrypoints.js.map | ||
export function entrypoints(options) { | ||
const entrypoints = this.extensions.get( | ||
'@roots/bud-entrypoints', | ||
) | ||
entrypoints.setOptions( | ||
Object.assign( | ||
Object.assign({}, entrypoints.getOptions()), | ||
options, | ||
), | ||
) | ||
return this | ||
} | ||
//# sourceMappingURL=entrypoints.js.map |
@@ -1,8 +0,9 @@ | ||
import * as Entrypoints from '@roots/entrypoints-webpack-plugin'; | ||
export * as api from './entrypoints'; | ||
export const make = opts => new Entrypoints.Plugin(opts.getStore()); | ||
import * as Entrypoints from '@roots/entrypoints-webpack-plugin' | ||
export * as api from './entrypoints' | ||
export const make = opts => | ||
new Entrypoints.Plugin(opts.getStore()) | ||
export const options = { | ||
name: 'entrypoints.json', | ||
writeToFileEmit: true, | ||
}; | ||
//# sourceMappingURL=index.js.map | ||
name: 'entrypoints.json', | ||
writeToFileEmit: true, | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@roots/bud-entrypoints", | ||
"version": "2.0.6", | ||
"description": "Entrypoints", | ||
"version": "2.1.1", | ||
"description": "Webpack tools", | ||
"repository": { | ||
@@ -18,3 +18,6 @@ "type": "git", | ||
"license": "MIT", | ||
"keywords": ["webpack", "bud"], | ||
"keywords": [ | ||
"webpack", | ||
"bud" | ||
], | ||
"engines": { | ||
@@ -51,7 +54,8 @@ "node": ">=12" | ||
"dependencies": { | ||
"@roots/entrypoints-webpack-plugin": "^2.0.6" | ||
"@roots/entrypoints-webpack-plugin": "^2.1.1" | ||
}, | ||
"devDependencies": { | ||
"@roots/bud-typings": "^2.0.6" | ||
} | ||
"@roots/bud-typings": "^2.1.1" | ||
}, | ||
"gitHead": "9d736f0b44384c1f66b94462145c11e618aa166d" | ||
} |
import {Bud, Extension} from '@roots/bud-typings' | ||
export const entrypoints: ( | ||
export function entrypoints( | ||
this: Bud, | ||
options: Extension.Module.RawOptions, | ||
) => Bud = function (options) { | ||
): Bud { | ||
const entrypoints = this.extensions.get( | ||
@@ -8,0 +8,0 @@ '@roots/bud-entrypoints', |
import { Bud, Extension } from '@roots/bud-typings'; | ||
export declare const entrypoints: (this: Bud, options: Extension.Module.RawOptions) => Bud; | ||
export declare function entrypoints(this: Bud, options: Extension.Module.RawOptions): Bud; | ||
//# sourceMappingURL=entrypoints.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
516868
130