svelte-ag 1.0.68 → 1.0.69
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.
|
@@ -42,7 +42,7 @@ async function readPackageNameAt(directory) {
|
|
|
42
42
|
export default async function componentSourceCollector(opts = { safePackages: [] }) {
|
|
43
43
|
// constants
|
|
44
44
|
const outFileName = opts.outputFile ?? 'component-sources.css';
|
|
45
|
-
const classAttributeRegex =
|
|
45
|
+
const classAttributeRegex = /(?:^|[^\w-])(?:className|class)\s*(?:=|:)\s*/;
|
|
46
46
|
const importRegex = /@import\s+['"]([^'"]+)['"]/g;
|
|
47
47
|
// state
|
|
48
48
|
let outputFilePath;
|
package/package.json
CHANGED
|
@@ -66,7 +66,7 @@ async function readPackageNameAt(directory: string): Promise<string | null> {
|
|
|
66
66
|
export default async function componentSourceCollector(opts: Options = { safePackages: [] }): Promise<Plugin> {
|
|
67
67
|
// constants
|
|
68
68
|
const outFileName = opts.outputFile ?? 'component-sources.css';
|
|
69
|
-
const classAttributeRegex =
|
|
69
|
+
const classAttributeRegex = /(?:^|[^\w-])(?:className|class)\s*(?:=|:)\s*/;
|
|
70
70
|
const importRegex = /@import\s+['"]([^'"]+)['"]/g;
|
|
71
71
|
|
|
72
72
|
// state
|