Skip to content

Convert block validation script to a module, and bundle it with block toggle module #1298

@kienstra

Description

@kienstra

AC1. Convert amp-block-validation.js to an ES6 module
AC2. Create a new file that will import both this module and amp-block-editor-toggle.js (though that might have since been renamed). This can be similar to blocks/index.js.
AC3. Add that new file with the import statements to webpack.config.js, so it will be compiled with npm run dev
AC4. Ensure that the compiled files have sourcemaps.

This should probably wait for the work on amp-block-validation.js in #1293

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions