main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
567 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | /*
|
---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
| 3 | Author Alexander Akait @alexander-akait
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | "use strict";
|
---|
| 7 |
|
---|
| 8 | // regexp to match at least one "magic comment"
|
---|
| 9 | module.exports.webpackCommentRegExp = new RegExp(
|
---|
| 10 | /(^|\W)webpack[A-Z]{1,}[A-Za-z]{1,}:/
|
---|
| 11 | );
|
---|
| 12 |
|
---|
| 13 | // regexp to match at least one "magic comment"
|
---|
| 14 | /**
|
---|
| 15 | * @returns {import("vm").Context} magic comment context
|
---|
| 16 | */
|
---|
| 17 | module.exports.createMagicCommentContext = () =>
|
---|
| 18 | require("vm").createContext(undefined, {
|
---|
| 19 | name: "Webpack Magic Comment Parser",
|
---|
| 20 | codeGeneration: { strings: false, wasm: false }
|
---|
| 21 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.